fix a preprocessor for .S

A test program (tcc -E test.S):
      # .. or else we have a high. This is a test.S
master
seyko 2015-04-10 16:40:30 +03:00
parent 70dbe169b2
commit 8037a1ce39
1 changed files with 6 additions and 2 deletions

View File

@ -2393,8 +2393,12 @@ maybe_newline:
goto parse_num;
} else if (c == '.') {
PEEKC(c, p);
if (c != '.')
expect("'.'");
if (c != '.') {
if ((parse_flags & PARSE_FLAG_ASM_COMMENTS) == 0)
expect("'.'");
tok = '.';
break;
}
PEEKC(c, p);
tok = TOK_DOTS;
} else {