aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2016-04-22 18:29:56 +0300
committerseyko <seyko2@gmail.com>2016-04-22 18:29:56 +0300
commit1f49441a27da312f75feb53db14c4e025f7eb7a2 (patch)
treeec78bd152ecf7e7b5e11b338e7020d50e89f7fb6 /tccpp.c
parentedcb15c31fd9182d8aa2185d8da6d5faf081863d (diff)
downloadtinycc-1f49441a27da312f75feb53db14c4e025f7eb7a2.tar.gz
tinycc-1f49441a27da312f75feb53db14c4e025f7eb7a2.tar.bz2
.rept asm directive
and '.' alone is a token now in *.S (not an identifier) representing a current position in the code (PC).
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tccpp.c b/tccpp.c
index b991944..e1fabbb 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -2784,7 +2784,8 @@ maybe_newline:
cstr_reset(&tokcstr);
cstr_ccat(&tokcstr, '.');
goto parse_num;
- } else if (parse_flags & PARSE_FLAG_ASM_FILE) {
+ } else if ((parse_flags & PARSE_FLAG_ASM_FILE)
+ && (isidnum_table[c - CH_EOF] & (IS_ID|IS_NUM))) {
*--p = c = '.';
goto parse_ident_fast;
} else if (c == '.') {