summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorragge <ragge>2009-05-22 08:00:11 +0000
committerragge <ragge>2009-05-22 08:00:11 +0000
commit204d30808cce64dcad0e7d5e36c805471b3c88e7 (patch)
tree893a07434b3877f190c7a82d5949b4f0df7ee2a6
parent071aa5472480a5b1b5d409169a805f910a2a2563 (diff)
Fix badly placed BEGIN/yylex(). Caused some #ifdefs not to be handled.
-rw-r--r--token.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/token.c b/token.c
index aaa51d1..aca9bd1 100644
--- a/token.c
+++ b/token.c
@@ -442,9 +442,11 @@ contr: while ((ch = input()) == ' ' || ch == '\t')
#define CC(s) if (strcmp(yytext, s) == 0)
CC("ifndef") {
contr = 0; ifndefstmt();
+ BEGIN 0;
goto zagain;
} else CC("ifdef") {
contr = 0; ifdefstmt();
+ BEGIN 0;
goto zagain;
} else CC("if") {
contr = 0; storepb(); BEGIN IFR;
@@ -907,7 +909,6 @@ ifdefstmt(void)
while (input() != '\n')
;
unput('\n');
- yylex();
flslvl++;
return;
}