mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-17 05:20:08 +08:00
fix a preprocessor for .S
A test program (tcc -E test.S): # .. or else we have a high. This is a test.S
This commit is contained in:
parent
70dbe169b2
commit
8037a1ce39
6
tccpp.c
6
tccpp.c
@ -2393,8 +2393,12 @@ maybe_newline:
|
|||||||
goto parse_num;
|
goto parse_num;
|
||||||
} else if (c == '.') {
|
} else if (c == '.') {
|
||||||
PEEKC(c, p);
|
PEEKC(c, p);
|
||||||
if (c != '.')
|
if (c != '.') {
|
||||||
|
if ((parse_flags & PARSE_FLAG_ASM_COMMENTS) == 0)
|
||||||
expect("'.'");
|
expect("'.'");
|
||||||
|
tok = '.';
|
||||||
|
break;
|
||||||
|
}
|
||||||
PEEKC(c, p);
|
PEEKC(c, p);
|
||||||
tok = TOK_DOTS;
|
tok = TOK_DOTS;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user