GCC/cpplib/function/cpp get token

Defined in macro.c.

/* External routine to get a token. Also used nearly everywhere

internally, except for places where we know we can safely call

_cpp_lex_token directly, such as lexing a directive name.

Macro expansions and directives are transparently handled,

including entering included files. Thus tokens are post-macro

expansion, and after any intervening directives. External callers

see CPP_EOF only at EOF. Internal callers also see it when meeting

a directive inside a macro call, when at the end of a directive and

state.in_directive is still 1, and at the end of argument

pre-expansion. */

const cpp_token *

cpp_get_token (cpp_reader *pfile)

{

return cpp_get_token_1 (pfile, NULL);

}