OSDN Git Service

* cpphash.h (struct_lexer_state): Delete was_skipping.
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jul 2001 06:02:47 +0000 (06:02 +0000)
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jul 2001 06:02:47 +0000 (06:02 +0000)
commit5e8785172ae21f82c03a677aa16602639af58d39
treecaee9edc9501482aa583e1040604f6f2a4d52aba
parent23f37e15fff4896c63987b3958cf8f365d50cb6f
* cpphash.h (struct_lexer_state): Delete was_skipping.
Move skipping here from struct cpp_reader.
* cpplex.c (parse_identifier): Update.
(_cpp_lex_token): Don't skip tokens in a directive.
* cpplib.c (struct if_stack): Update.
(start_directive, end_directive): Don't change skipping state.
(_cpp_handle_directive): Update.
(do_ifdef, do_ifndef, do_if, do_elif): Similarly.
(do_else, do_endif): Update; only check for excess tokens if not
in a skipped conditional block.
(push_conditional): Update for new struct if_stack.

* gcc.dg/cpp/extratokens.c: Fix.
* gcc.dg/cpp/skipping2.c: New tests.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44380 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cpphash.h
gcc/cpplex.c
gcc/cpplib.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/extratokens.c
gcc/testsuite/gcc.dg/cpp/skipping2.c [new file with mode: 0644]