aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2000-07-19 20:18:08 +0000
committerZack Weinberg <zack@gcc.gnu.org>2000-07-19 20:18:08 +0000
commit92936ecf1a27517ac0b96c5af6a5ae9664faf3f3 (patch)
treefb27fc4ef85133963af7127518d36e07b5e1d021 /gcc/cpphash.h
parentb86db3ebc22f22aae3f7dddadc90c9b1841ebe1a (diff)
downloadgcc-92936ecf1a27517ac0b96c5af6a5ae9664faf3f3.zip
gcc-92936ecf1a27517ac0b96c5af6a5ae9664faf3f3.tar.gz
gcc-92936ecf1a27517ac0b96c5af6a5ae9664faf3f3.tar.bz2
cpplib.h (TTYPE_TABLE): Move CPP_MIN and CPP_MAX into block of operators allowed in #if...
* 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. From-SVN: r35137
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 51f7787..c6c3f0a 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 */