diff options
author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-16 13:44:29 +0000 |
---|---|---|
committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-16 13:44:29 +0000 |
commit | c00e481c16b2a2036ff5f18f412d432e50f307d6 (patch) | |
tree | b0d12b8ccfd049f7327ee01b7ef6f9fc687e6a3d /gcc/cpplex.c | |
parent | d0d481d78be7b2adf26289b40b5c53abcc9f7206 (diff) | |
download | gcc-c00e481c16b2a2036ff5f18f412d432e50f307d6.tar.gz |
* cpphash.h (_cpp_lex_token): Update prototype.
* cpplex.c (_cpp_lex_token): New prototype.
* cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
lex_macro_node, read_flag, do_pragma_poison): Update.
* cppmacro.c (cpp_get_token, parse_params,
lex_expansion_token): Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45646 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index f57d482fc4b..1bfca20092c 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -933,10 +933,9 @@ next_tokenrun (run) } /* Lex a token into RESULT (external interface). */ -void -_cpp_lex_token (pfile, dest) +const cpp_token * +_cpp_lex_token (pfile) cpp_reader *pfile; - cpp_token *dest; { cpp_token *result; @@ -979,7 +978,7 @@ _cpp_lex_token (pfile, dest) break; } - *dest = *result; + return result; } /* Lex a token into RESULT. When meeting a newline, returns CPP_EOF |