diff options
author | Robert de Bath <rdebath@poboxes.com> | 1999-01-23 13:29:22 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:40:39 +0200 |
commit | e62b35169cdcd13632ae353b1e5ffde7dec44201 (patch) | |
tree | 2646548ca84edb365354a6e68459f92943532cee /bcc/preproc.c | |
parent | 2233d47f9d89c107b6c425626d6eb2669363b055 (diff) | |
download | dev86-e62b35169cdcd13632ae353b1e5ffde7dec44201.tar.gz |
Import Dev86src-0.14.7.tar.gzv0.14.7
Diffstat (limited to 'bcc/preproc.c')
-rw-r--r-- | bcc/preproc.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bcc/preproc.c b/bcc/preproc.c index 507591f..84262e6 100644 --- a/bcc/preproc.c +++ b/bcc/preproc.c @@ -323,7 +323,8 @@ ts_s_macstring += 2; { gch1(); skipcomment(); - ch = *--lineptr = ' '; /* comment is space in modern cpp's */ + /* comment is space in modern cpp's but they have '##' too */ + ch = *--lineptr = ' '; } } #ifdef TS @@ -547,7 +548,14 @@ ts_s_macparam_tot += sizeof *paramlist * nparleft; blanks(); } if (ch != '(') + { + if (nparleft > 0) /* macro has params, doesn't match bare word */ + { + outstr(symptr->name.namea); + return; + } error("missing '('"); + } else { gch1(); |