]> git.ipfire.org Git - thirdparty/gcc.git/commit
cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry macros, not five.
authorZack Weinberg <zack@wolery.cumb.org>
Tue, 18 Jul 2000 23:25:06 +0000 (23:25 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Tue, 18 Jul 2000 23:25:06 +0000 (23:25 +0000)
commit96be6998336d305447f3963eb2c9d902eae516a7
treebe6672085587ff8d9d75f630009b64878dc2aec5
parentd0089985e7e6ec8fd020e40eb59667a88d0282de
cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry macros, not five.

* cpplib.h (TTYPE_TABLE): Rearrange to use only two per-entry
          macros, not five.

* cpphash.h (TOKEN_NAME): New macro.
(_cpp_spell_operator): Deleted.
(token_spellings): Now _cpp_token_spellings.

* cppexp.c: Use TOKEN_NAME or TYPE_NAME, not _cpp_spell_operator.
* cpplex.c: Use OP and TK macros when expanding the
TTYPE_TABLE.  Eliminate token_names.  For non-OPERATOR tokens,
store the stringification of the enumeration name (CPP_CHAR,
etc.) in the name slot of token_spellings.
Use TOKEN_NAME and/or TOKEN_SPELL, do not reference
token_spellings directly.
* cpplib.c: Use TOKEN_SPELL.

* cpplex.c (_cpp_push_token): If the token being pushed back
is the previous token in this context, just subtract one from
context->posn.
* cppmacro.c (save_expansion): Clear aux field when storing a
placemarker.

* gcc.dg/cpp/paste5.c: New test.
* gcc.dg/cpp/vararg1.c: New test.

From-SVN: r35124
gcc/ChangeLog
gcc/cppexp.c
gcc/cpphash.h
gcc/cpplex.c
gcc/cpplib.c
gcc/cpplib.h
gcc/cppmacro.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/paste5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/vararg1.c [new file with mode: 0644]