summaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-19 20:18:08 +0000
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-19 20:18:08 +0000
commit316744619de1b120399985e6b8f5ae475da07ed4 (patch)
treefb27fc4ef85133963af7127518d36e07b5e1d021 /gcc/cpphash.h
parent91d4291d407bed3bc47e9dca4af564a601e1c0b2 (diff)
downloadgcc-316744619de1b120399985e6b8f5ae475da07ed4.tar.gz
* cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block
of operators allowed in #if and having an _EQ variant. Add CPP_MIN_EQ, CPP_MAX_EQ, and CPP_DEFINED. (cpp_token flags): Add NAMED_OP. (enum node_type): Add T_OPERATOR. (struct cpp_hashnode): Add code slot to value union. * cpphash.h (spec_nodes): Remove n_defined. * cpplex.c (lex_line): Convert T_OPERATOR nodes to their proper types. (spell_token, can_paste, maybe_paste_with_next): Handle named operators. (is_macro_disabled): Tweak error messages. * cpplib.c (get_define_node): Disallow all named operators as macro names. Tweak error messages. (_cpp_init_stacks): Don't set up spec_nodes->n_defined. * cppinit.c (builtin_array): Add entries for the named operators. * cppexp.c (lex): Check for CPP_DEFINED token. (priority table): Add entries for CPP_MIN and CPP_MAX. (_cpp_parse_expr): Handle CPP_MIN and CPP_MAX. testsuite: * gcc.dg/cpp/directiv.c, gcc.dg/cpp/macsyntx.c, gcc.dg/cpp/undef1.c: Tweak error regexps. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35137 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r--gcc/cpphash.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index 51f7787e454..c6c3f0a0b65 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -124,7 +124,6 @@ struct include_file
struct spec_nodes
{
cpp_hashnode *n_L; /* L"str" */
- cpp_hashnode *n_defined; /* #if defined */
cpp_hashnode *n__STRICT_ANSI__; /* STDC_0_IN_SYSTEM_HEADERS */
cpp_hashnode *n__CHAR_UNSIGNED__; /* plain char is unsigned */
cpp_hashnode *n__VA_ARGS__; /* C99 vararg macros */