diff options
| author | seyko <seyko2@gmail.com> | 2015-04-10 16:40:30 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2015-04-10 16:40:30 +0300 |
| commit | 8037a1ce39730f729b75907d0fa5691412c82e46 (patch) | |
| tree | f01aef38725129ebdcaa6b0cc17226cced02dda5 | |
| parent | 70dbe169b2e714ea24d6e0953ec96ac19c6cf0df (diff) | |
| download | tinycc-8037a1ce39730f729b75907d0fa5691412c82e46.tar.gz tinycc-8037a1ce39730f729b75907d0fa5691412c82e46.tar.bz2 | |
fix a preprocessor for .S
A test program (tcc -E test.S):
# .. or else we have a high. This is a test.S
| -rw-r--r-- | tccpp.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 { |
