PulkoMandy | 17fc759 | 2022-07-28 18:27:54 +0200 | [diff] [blame] | 1 | /* $VER: vbcc (vbcc_cpp.h) $Revision: 1.2 $ */ |
| 2 | |
| 3 | |
| 4 | /* fix some name clashes between vbcc and ucpp and include cpp.h */ |
| 5 | /* has to be include prior to other vbcc includes */ |
| 6 | |
| 7 | |
| 8 | #define STRING T_STRING |
| 9 | #define CHAR T_CHAR |
| 10 | #define CAST T_CAST |
| 11 | #define AND T_AND |
| 12 | #define OR T_OR |
| 13 | #define COLON T_COLON |
| 14 | #define LOR T_LOR |
| 15 | #define LAND T_LAND |
| 16 | #define MINUS T_MINUS |
| 17 | |
| 18 | #define NO_UCPP_ERROR_FUNCTIONS 1 |
| 19 | #include "ucpp/cpp.h" |
| 20 | |
| 21 | typedef struct token token; |
| 22 | typedef struct lexer_state lexer_state; |
| 23 | typedef struct stack_context stack_context; |
| 24 | |
| 25 | extern token *ctok; |
| 26 | extern lexer_state ls; |
| 27 | |
| 28 | #undef STRING |
| 29 | #undef CHAR |
| 30 | #undef CAST |
| 31 | #undef AND |
| 32 | #undef OR |
| 33 | #undef COLON |
| 34 | #undef LOR |
| 35 | #undef LAND |
| 36 | #undef MINUS |
| 37 | |
| 38 | #define next_token vbcc_next_token |
| 39 | #undef error |
| 40 | |
| 41 | #undef S_TOKEN |
| 42 | #define S_TOKEN(x) ((x) >= NUMBER && (x) <= T_CHAR) |
| 43 | |
| 44 | #define ttMWS(x) ((x) == NONE || (x) == COMMENT || (x) == OPT_NONE) |
| 45 | #define ttWHI(x) (ttMWS(x) || (x) == NEWLINE) |
| 46 | |
| 47 | char *ucpp_token_name(); |