]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cppexp.c
cppexp.c (parse_defined): Always record the macro name.
authorNeil Booth <neil@cat.daikokuya.demon.co.uk>
Sun, 29 Jul 2001 17:27:57 +0000 (17:27 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Sun, 29 Jul 2001 17:27:57 +0000 (17:27 +0000)
commit6d18adbc2c00b2919cbf6b59219a2287e6feecd7
treeae3bf4ef61f7e71d609b714e200c82e7e441cba2
parent0068fd9637aa304ba7b27d720719bd589a7755ce
cppexp.c (parse_defined): Always record the macro name.

* cppexp.c (parse_defined): Always record the macro name.
(lex): Don't worry about identifiers, or special-case
CPP_NOT here.
(_cpp_parse_expr): Figure out at the end of the routine
whether we saw a valid !defined() expression.
* cppfiles.c (stack_include_file): Update for mi_valid.
(_cpp_pop_file_buffer): Similarly.
* cpplex.c (_cpp_lex_token): Similarly.
* cpphash.h (enum mi_state, enum mi_ind, mi_state,
mi_if_not_defined, mi_lexed): Remove.
(mi_valid): New.
* cpplib.c (do_if): Simplify.
(do_endif, push_conditional, _cpp_handle_directive): Update
for renaming of mi_state to mi_valid.

* cpp.texi: Add index entries for digraphs, and add comment
that C++ refers to them as alternative tokens.

From-SVN: r44459
gcc/ChangeLog
gcc/cppexp.c
gcc/cppfiles.c
gcc/cpphash.h
gcc/cpplex.c
gcc/cpplib.c
gcc/cppmacro.c
gcc/doc/cpp.texi