aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorPhilip <pipcet@gmail.com>2015-05-02 14:27:49 +0000
committerPhilip <pipcet@gmail.com>2015-05-02 14:27:49 +0000
commit2f90db434e68b79ef6dab3a25d752ecca1bf00e2 (patch)
tree1c32c178fa9449e2e9d538a7c3f5f56abd00e574 /tcc.h
parent2f50cefbd4dd9a309555605495f5e4b820bad160 (diff)
downloadtinycc-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index a0d0635..8d832ff 100644
--- a/tcc.h
+++ b/tcc.h
@@ -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 */