Remove _ANSI.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 3 Jul 2012 10:26:07 +0000 (12:26 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 3 Jul 2012 10:26:07 +0000 (12:26 +0200)
It should be just another word for _C89, but wasn't.

lang_features.h
main.c
tokens.inc

index cbcfad2..65ed32e 100644 (file)
 
 typedef enum lang_features_t {
        _C89  = 1U << 0,
-       _ANSI = 1U << 1,
-       _C99  = 1U << 2,
-       _CXX  = 1U << 3,
-       _GNUC = 1U << 4,
-       _MS   = 1U << 5,
+       _C99  = 1U << 1,
+       _CXX  = 1U << 2,
+       _GNUC = 1U << 3,
+       _MS   = 1U << 4,
        _ALL  = 0xFF
 } lang_features_t;
 
diff --git a/main.c b/main.c
index 5641b4e..f6fbce3 100644 (file)
--- a/main.c
+++ b/main.c
@@ -98,7 +98,7 @@
 #define ASSEMBLER "gcc -c -xassembler"
 #endif
 
-unsigned int        c_mode                    = _C89 | _ANSI | _C99 | _GNUC;
+unsigned int        c_mode                    = _C89 | _C99 | _GNUC;
 bool                byte_order_big_endian     = false;
 bool                strict_mode               = false;
 bool                enable_main_collect2_hack = false;
index 0a373ab..492c9f5 100644 (file)
@@ -133,7 +133,7 @@ S(_MS, __FUNCDNAME__)
 #define S(mode, x, val) T(mode, x, #x, val)
 S(_C99,            __func__,)
 S(_ALL,            __FUNCTION__,           = T___func__)
-S(_ANSI|_C99|_CXX,   signed,               )
+S(_ALL,              signed,               )
 S(_ALL,            __signed,               = T_signed)
 S(_ALL,            __signed__,             = T_signed)
 S(_C99|_GNUC,       _Complex,              )
@@ -147,7 +147,7 @@ S(_ALL,            __imag,                 = T___imag__)
 S(_ALL,            __alignof__,            )
 S(_ALL,            __alignof,              = T___alignof__)
 S(_MS,              _alignof,              = T___alignof__)
-S(_ANSI|_C99|_CXX,   const,                )
+S(_ALL,              const,                )
 S(_ALL,            __const,                = T_const)
 S(_ALL,            __const__,              = T_const)
 S(_C99,              restrict,             )
@@ -158,7 +158,7 @@ S(_ALL,              asm,                  )
 S(_ALL,            __asm__,                = T_asm)
 S(_MS,              _asm,                  = T_asm)
 S(_ALL,            __asm,                  = T_asm)
-S(_ANSI|_C99|_CXX,   volatile,             )
+S(_ALL,              volatile,             )
 S(_ALL,            __volatile,             = T_volatile)
 S(_ALL,            __volatile__,           = T_volatile)
 S(_C99|_CXX|_GNUC,   inline,               )