Support some extensions even with -std=c90 and -pedantic
authorRobert Pengelly <robertapengelly@hotmail.com>
Mon, 8 Jun 2026 11:10:21 +0000 (12:10 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Mon, 8 Jun 2026 11:10:21 +0000 (12:10 +0100)
token.c

diff --git a/token.c b/token.c
index 0f9b24dbc7ad6423ac14b5a48a622c1d32b2f7ef..b6555cea724deb7655d1191ba5ab7755a2b6b398 100755 (executable)
--- a/token.c
+++ b/token.c
@@ -1065,9 +1065,9 @@ static int find_kind (const char *start, const char *caret, const char *p) {
     static struct keyword kws[] = {
     
         /* Compiler Specific keywords */
-        {   "__scc_builtin_va_arg",     0,      VERSION,    TOK_SCC_BUILTIN_VA_ARG  },
-        {   "__dllexport",              0,      VERSION,    TOK_DLLEXPORT           },
-        {   "__stdcall",                0,      VERSION,    TOK_STDCALL             },
+        {   "__scc_builtin_va_arg",     -1,     VERSION,    TOK_SCC_BUILTIN_VA_ARG  },
+        {   "__dllexport",              -1,     VERSION,    TOK_DLLEXPORT           },
+        {   "__stdcall",                -1,     VERSION,    TOK_STDCALL             },
         
         {   "__asm__",                  0,      VERSION,    TOK_ASM                 },
         {   "__inline__",               0,      VERSION,    TOK_INLINE              },