diff options
author | ragge <ragge> | 2009-05-22 08:00:11 +0000 |
---|---|---|
committer | ragge <ragge> | 2009-05-22 08:00:11 +0000 |
commit | 204d30808cce64dcad0e7d5e36c805471b3c88e7 (patch) | |
tree | 893a07434b3877f190c7a82d5949b4f0df7ee2a6 | |
parent | 071aa5472480a5b1b5d409169a805f910a2a2563 (diff) |
Fix badly placed BEGIN/yylex(). Caused some #ifdefs not to be handled.
-rw-r--r-- | token.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |