diff options
author | Neil Booth <neil@daikokuya.demon.co.uk> | 2001-09-16 13:44:29 +0000 |
---|---|---|
committer | Neil Booth <neil@gcc.gnu.org> | 2001-09-16 13:44:29 +0000 |
commit | 345894b43fd5709b3990ff7897ed2b941d62742c (patch) | |
tree | b0d12b8ccfd049f7327ee01b7ef6f9fc687e6a3d /gcc/cpplex.c | |
parent | 18a9d8ff7f06fbdc3ea635c8d55ea4023bad0dd8 (diff) | |
download | gcc-345894b43fd5709b3990ff7897ed2b941d62742c.zip gcc-345894b43fd5709b3990ff7897ed2b941d62742c.tar.gz gcc-345894b43fd5709b3990ff7897ed2b941d62742c.tar.bz2 |
cpphash.h (_cpp_lex_token): Update prototype.
* 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.
From-SVN: r45646
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 f57d482..1bfca20 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 |