aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorNeil Booth <neil@cat.daikokuya.demon.co.uk>2001-07-29 17:27:57 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-07-29 17:27:57 +0000
commit6d18adbc2c00b2919cbf6b59219a2287e6feecd7 (patch)
treeae3bf4ef61f7e71d609b714e200c82e7e441cba2 /gcc/cpphash.h
parent0068fd9637aa304ba7b27d720719bd589a7755ce (diff)
downloadgcc-6d18adbc2c00b2919cbf6b59219a2287e6feecd7.zip
gcc-6d18adbc2c00b2919cbf6b59219a2287e6feecd7.tar.gz
gcc-6d18adbc2c00b2919cbf6b59219a2287e6feecd7.tar.bz2
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
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r--gcc/cpphash.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index a8221d9..368fe46 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -93,10 +93,6 @@ struct search_path
struct file_name_map *name_map;
};
-/* Multiple-include optimisation. */
-enum mi_state {MI_FAILED = 0, MI_OUTSIDE};
-enum mi_ind {MI_IND_NONE = 0, MI_IND_NOT};
-
/* #include types. */
enum include_type {IT_INCLUDE, IT_INCLUDE_NEXT, IT_IMPORT, IT_CMDLINE};
@@ -268,11 +264,9 @@ struct cpp_reader
const struct directive *directive;
/* Multiple inlcude optimisation. */
- enum mi_state mi_state;
- enum mi_ind mi_if_not_defined;
- unsigned int mi_lexed;
const cpp_hashnode *mi_cmacro;
const cpp_hashnode *mi_ind_cmacro;
+ bool mi_valid;
/* Token lookahead. */
struct cpp_lookahead *la_read; /* Read from this lookahead. */