just predefine stdc inttypes
[m6w6/ext-psi] / src / parser.re
index fb4e35bb3933e3fa4847ad04eb0f98d89bf2e12e..9d8288eb90287e523c08e91f81b39827c0f00834 100644 (file)
@@ -366,9 +366,12 @@ struct psi_plist *psi_parser_scan(struct psi_parser *P, struct psi_parser_input
                "?"                             { NEWTOKEN(PSI_T_IIF); goto start; }
                "pragma"                { NEWTOKEN(PSI_T_PRAGMA); goto start; }
                "pragma" W+ "once"      { NEWTOKEN(PSI_T_PRAGMA_ONCE); goto start; }
+               "__inline"              { NEWTOKEN(PSI_T_CPP_INLINE); goto start; }
                "__restrict"    { NEWTOKEN(PSI_T_CPP_RESTRICT); goto start; }
                "__extension__" { NEWTOKEN(PSI_T_CPP_EXTENSION); goto start; }
                "__asm__"               { NEWTOKEN(PSI_T_CPP_ASM); goto start; }
+               "volatile"              { NEWTOKEN(PSI_T_VOLATILE); goto start; }
+               "sizeof"                { NEWTOKEN(PSI_T_SIZEOF); goto start; }
                "line"                  { NEWTOKEN(PSI_T_LINE); goto start; }
                "typedef"               { NEWTOKEN(PSI_T_TYPEDEF); goto start; }
                "struct"                { NEWTOKEN(PSI_T_STRUCT); goto start; }
@@ -383,14 +386,6 @@ struct psi_plist *psi_parser_scan(struct psi_parser *P, struct psi_parser_input
                "long"                  { NEWTOKEN(PSI_T_LONG); goto start; }
                "float"                 { NEWTOKEN(PSI_T_FLOAT); goto start; }
                "double"                { NEWTOKEN(PSI_T_DOUBLE); goto start; }
-               "int8_t"                { NEWTOKEN(PSI_T_INT8); goto start; }
-               "uint8_t"               { NEWTOKEN(PSI_T_UINT8); goto start; }
-               "int16_t"               { NEWTOKEN(PSI_T_INT16); goto start; }
-               "uint16_t"              { NEWTOKEN(PSI_T_UINT16); goto start; }
-               "int32_t"               { NEWTOKEN(PSI_T_INT32); goto start; }
-               "uint32_t"              { NEWTOKEN(PSI_T_UINT32); goto start; }
-               "int64_t"               { NEWTOKEN(PSI_T_INT64); goto start; }
-               "uint64_t"              { NEWTOKEN(PSI_T_UINT64); goto start; }
                "unsigned"              { NEWTOKEN(PSI_T_UNSIGNED); goto start; }
                "signed"                { NEWTOKEN(PSI_T_SIGNED); goto start; }
                'IF'                    { NEWTOKEN(PSI_T_IF); goto start; }