diff options
| author | Philip <pipcet@gmail.com> | 2015-05-02 14:27:49 +0000 |
|---|---|---|
| committer | Philip <pipcet@gmail.com> | 2015-05-02 14:27:49 +0000 |
| commit | 2f90db434e68b79ef6dab3a25d752ecca1bf00e2 (patch) | |
| tree | 1c32c178fa9449e2e9d538a7c3f5f56abd00e574 /tcc.h | |
| parent | 2f50cefbd4dd9a309555605495f5e4b820bad160 (diff) | |
| download | tinycc-2f90db434e68b79ef6dab3a25d752ecca1bf00e2.tar.gz tinycc-2f90db434e68b79ef6dab3a25d752ecca1bf00e2.tar.bz2 | |
tccpp.c: fix GNU comma handling
This requires moving TOK_PLCHLDR handling, but the new logic should make
things easier even if (when?) GNU comma handling is removed.
(Somewhat confusingly, GCC no longer supports GNU commas. See
http://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html for a description
of past and current GCC behaviour.)
Diffstat (limited to 'tcc.h')
| -rw-r--r-- | tcc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -880,6 +880,7 @@ struct TCCState { #define TOK_DOTS 0xcc /* three dots */ #define TOK_SHR 0xcd /* unsigned shift right */ #define TOK_NOSUBST 0xcf /* means following token has already been pp'd */ +#define TOK_GNUCOMMA 0xd0 /* ,## preprocessing token */ #define TOK_SHL 0x01 /* shift left */ #define TOK_SAR 0x02 /* signed shift right */ |
