aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tccpp.c b/tccpp.c
index 57e1b2e..4dba954 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -2549,10 +2549,13 @@ maybe_newline:
goto parse_num;
} else if (c == '.') {
PEEKC(c, p);
- if (c != '.')
- expect("'.'");
- PEEKC(c, p);
- tok = TOK_DOTS;
+ if (c == '.') {
+ p++;
+ tok = TOK_DOTS;
+ } else {
+ *--p = '.'; /* may underflow into file->unget[] */
+ tok = '.';
+ }
} else {
tok = '.';
}