aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
authorgrischka <grischka>2011-03-06 19:13:12 +0100
committergrischka <grischka>2011-03-06 19:13:12 +0100
commit5d55647a3cbcddb490163e61307ff4edb13f7546 (patch)
tree3ddc7e59b848e8757bb329fe8c4194aa0a0979db /tccpp.c
parentc27e76aa2aa6dce1c5a0409ba97e2c7ef313aa33 (diff)
downloadtinycc-5d55647a3cbcddb490163e61307ff4edb13f7546.tar.gz
tinycc-5d55647a3cbcddb490163e61307ff4edb13f7546.tar.bz2
tccpp: fix problem in preprocess_skip with empty #
for example: #ifdef stuff # /* some comment */ #endif
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tccpp.c b/tccpp.c
index 3afee3f..feb533a 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -746,6 +746,8 @@ redo_start:
a--;
else if( tok == TOK_ERROR || tok == TOK_WARNING)
in_warn_or_error = 1;
+ else if (tok == TOK_LINEFEED)
+ goto redo_start;
}
break;
_default: