summaryrefslogtreecommitdiff
path: root/glcpp.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-06-01 11:20:18 -0700
committerCarl Worth <cworth@cworth.org>2010-06-01 11:23:08 -0700
commita771a40e2257657cbdae0eb97a7bb8733db76b91 (patch)
tree363998c5e734aea3fc40d4fff94bcf5d2646479b /glcpp.h
parent96d3994881832201db7edd8a0a6f4b34655649d3 (diff)
Fix #if-skipping to *really* skip the skipped group.
Previously we were avoiding printing within a skipped group, but we were still evluating directives such as #define and #undef and still emitting diagnostics for things such as macro calls with the wrong number of arguments. Add a test for this and fix it with a high-priority rule in the lexer that consumes the skipped content.
Diffstat (limited to 'glcpp.h')
-rw-r--r--glcpp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/glcpp.h b/glcpp.h
index 5c8c304a9c..41fc2043d1 100644
--- a/glcpp.h
+++ b/glcpp.h
@@ -127,6 +127,7 @@ struct glcpp_parser {
yyscan_t scanner;
struct hash_table *defines;
string_list_t *active;
+ int lexing_if;
int space_tokens;
int newline_as_space;
int in_control_line;