5 TS(IDENTIFIER, "identifier", = 256)
6 TS(INTEGER, "integer number",)
7 TS(CHARACTER_CONSTANT, "character constant",)
8 TS(WIDE_CHARACTER_CONSTANT, "wide character constant",)
9 TS(FLOATINGPOINT, "floatingpoint number",)
10 TS(STRING_LITERAL, "string literal",)
11 TS(WIDE_STRING_LITERAL, "wide string literal",)
13 #define ALTERNATE(name, val) T(_CXX, name, #name, val)
14 #define PUNCTUATOR(name, string, val) T(_ALL, name, string, val)
15 #include "tokens_punctuator.inc"
19 #define S(mode,x) T(mode,x,#x,)
72 S(_CXX, reinterpret_cast)
89 S(_ALL, __extension__)
90 S(_ALL, __builtin_classify_type)
91 S(_ALL, __builtin_va_list)
92 S(_ALL, __builtin_va_arg)
93 S(_ALL, __builtin_va_copy)
94 S(_ALL, __builtin_offsetof)
95 S(_ALL, __builtin_constant_p)
96 S(_ALL, __builtin_types_compatible_p)
97 S(_ALL, __builtin_isgreater)
98 S(_ALL, __builtin_isgreaterequal)
99 S(_ALL, __builtin_isless)
100 S(_ALL, __builtin_islessequal)
101 S(_ALL, __builtin_islessgreater)
102 S(_ALL, __builtin_isunordered)
103 S(_ALL, __PRETTY_FUNCTION__)
104 S(_ALL, __FUNCTION__)
108 S(_MS, __FUNCDNAME__)
111 /* needed on Windows */
122 /* needed on MinGW */
138 #if defined(__MINGW32__) || defined(__CYGWIN__)
150 /* needed on darwin... */
164 #define S(mode, x, val) T(mode, x, #x, val)
165 S(_ANSI|_C99|_CXX, signed, )
166 S(_ALL, __signed, = T_signed)
167 S(_ALL, __signed__, = T_signed)
168 S(_C99|_GNUC, _Complex, )
169 S(_ALL, __complex__, = T__Complex)
170 S(_ALL, __complex, = T__Complex)
171 S(_C99|_GNUC, _Imaginary, )
173 S(_ALL, __real, = T___real__)
175 S(_ALL, __imag, = T___imag__)
176 S(_ALL, __alignof__, )
177 S(_ALL, __alignof, = T___alignof__)
178 S(_MS, _alignof, = T___alignof__)
179 S(_ANSI|_C99|_CXX, const, )
180 S(_ALL, __const, = T_const)
181 S(_ALL, __const__, = T_const)
183 S(_ALL, __restrict__, = T_restrict)
184 S(_ALL, __restrict, = T_restrict)
185 S(_MS, _restrict, = T_restrict)
187 S(_ALL, __asm__, = T_asm)
188 S(_MS, _asm, = T_asm)
189 S(_ALL, __asm, = T_asm)
190 S(_ANSI|_C99|_CXX, volatile, )
191 S(_ALL, __volatile, = T_volatile)
192 S(_ALL, __volatile__, = T_volatile)
193 S(_C99|_CXX, inline, )
194 S(_ALL, __inline, = T_inline)
195 S(_ALL, __inline__, = T_inline)
197 S(_ALL, __typeof, = T_typeof)
198 S(_ALL, __typeof__, = T_typeof)
199 S(_ALL, __attribute__, )
201 S(_ALL, __builtin_va_start, )
202 S(_ALL, __builtin_stdarg_start, = T___builtin_va_start)
205 S(_MS, __near, = T__near)
207 S(_MS, __far, = T__far)
209 S(_MS, _cdecl, = T_cdecl)
210 S(_MS, __cdecl, = T_cdecl)
212 S(_MS, __stdcall, = T__stdcall)
214 S(_MS, __fastcall, = T__fastcall)
216 S(_MS, _forceinline, )
217 S(_MS, __forceinline, = T__forceinline)
218 S(_MS, __unaligned, )
220 S(_MS, __assume, = T__assume)
222 S(_MS, __try, = T__try)
224 S(_MS, __finally, = T__finally)
226 S(_MS, __leave, = T__leave)
228 S(_MS, __except, = T__except)
230 S(_MS, __declspec, = T__declspec)
232 S(_MS, __based, = T__based)
240 S(_MS, __w64, = T__w64)
243 S(_MS, __int8, = T__int8)
245 S(_MS, __int16, = T__int16)
247 S(_MS, __int32, = T__int32)
249 S(_MS, __int64, = T__int64)
251 S(_MS, __int128, = T__int128)
254 /* Redefine required macros for MinGW headers */
255 #if defined(__MINGW32__) || defined(__CYGWIN__)
256 #define __stdcall __attribute__((__stdcall__))
257 #define __fastcall __attribute__((__fastcall__))
258 #define __cdecl __attribute__((__cdecl__))