forked from Leffmann/vbcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vbcc_cpp.h
40 lines (31 loc) · 816 Bytes
/
vbcc_cpp.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* fix some name clashes between vbcc and ucpp and include cpp.h */
/* has to be include prior to other vbcc includes */
#define STRING T_STRING
#define CHAR T_CHAR
#define CAST T_CAST
#define AND T_AND
#define OR T_OR
#define COLON T_COLON
#define LOR T_LOR
#define LAND T_LAND
#define MINUS T_MINUS
#define NO_UCPP_ERROR_FUNCTIONS 1
#include "ucpp/cpp.h"
extern struct token *ctok;
extern struct lexer_state ls;
#undef STRING
#undef CHAR
#undef CAST
#undef AND
#undef OR
#undef COLON
#undef LOR
#undef LAND
#undef MINUS
#define next_token vbcc_next_token
#undef error
#undef S_TOKEN
#define S_TOKEN(x) ((x) >= NUMBER && (x) <= T_CHAR)
#define ttMWS(x) ((x) == NONE || (x) == COMMENT || (x) == OPT_NONE)
#define ttWHI(x) (ttMWS(x) || (x) == NEWLINE)
char *ucpp_token_name();