diff options
| author | seyko <seyko2@gmail.com> | 2016-04-22 18:29:56 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2016-04-22 18:29:56 +0300 |
| commit | 1f49441a27da312f75feb53db14c4e025f7eb7a2 (patch) | |
| tree | ec78bd152ecf7e7b5e11b338e7020d50e89f7fb6 /tccpp.c | |
| parent | edcb15c31fd9182d8aa2185d8da6d5faf081863d (diff) | |
| download | tinycc-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 == '.') { |
