From 2f90db434e68b79ef6dab3a25d752ecca1bf00e2 Mon Sep 17 00:00:00 2001 From: Philip Date: Sat, 2 May 2015 14:27:49 +0000 Subject: 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.) --- tcc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tcc.h') 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 */ -- cgit v1.3.1