summaryrefslogtreecommitdiff
path: root/gcc/cpphash.h
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-26 06:02:47 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-26 06:02:47 +0000
commit5e8785172ae21f82c03a677aa16602639af58d39 (patch)
treecaee9edc9501482aa583e1040604f6f2a4d52aba /gcc/cpphash.h
parent23f37e15fff4896c63987b3958cf8f365d50cb6f (diff)
downloadgcc-5e8785172ae21f82c03a677aa16602639af58d39.tar.gz
* 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
Diffstat (limited to 'gcc/cpphash.h')
-rw-r--r--gcc/cpphash.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/cpphash.h b/gcc/cpphash.h
index 56d90681dcb..a8221d98a25 100644
--- a/gcc/cpphash.h
+++ b/gcc/cpphash.h
@@ -126,6 +126,9 @@ struct lexer_state
/* Nonzero if first token on line is CPP_HASH. */
unsigned char in_directive;
+ /* True if we are skipping a failed conditional group. */
+ unsigned char skipping;
+
/* Nonzero if in a directive that takes angle-bracketed headers. */
unsigned char angled_headers;
@@ -216,9 +219,6 @@ struct cpp_buffer
buffers. */
unsigned char from_stage3;
- /* Temporary storage for pfile->skipping whilst in a directive. */
- unsigned char was_skipping;
-
/* 1 = system header file, 2 = C system header file used for C++. */
unsigned char sysp;
@@ -342,9 +342,6 @@ struct cpp_reader
/* We're printed a warning recommending against using #import. */
unsigned char import_warning;
- /* True if we are skipping a failed conditional group. */
- unsigned char skipping;
-
/* Whether to print our version number. Done this way so
we don't get it twice for -v -version. */
unsigned char print_version;