tccpp: convert TOK_GET macro into function
This commit is contained in:
6
tcc.h
6
tcc.h
@ -191,7 +191,7 @@ typedef union CValue {
|
||||
unsigned long long ull;
|
||||
struct CString *cstr;
|
||||
void *ptr;
|
||||
int tab[1];
|
||||
int tab[2];
|
||||
} CValue;
|
||||
|
||||
/* value on stack */
|
||||
@ -334,7 +334,7 @@ typedef struct BufferedFile {
|
||||
/* parsing state (used to save parser state to reparse part of the
|
||||
source several times) */
|
||||
typedef struct ParseState {
|
||||
int *macro_ptr;
|
||||
const int *macro_ptr;
|
||||
int line_num;
|
||||
int tok;
|
||||
CValue tokc;
|
||||
@ -920,7 +920,7 @@ ST_FUNC int ieee_finite(double d);
|
||||
ST_DATA struct BufferedFile *file;
|
||||
ST_DATA int ch, tok;
|
||||
ST_DATA CValue tokc;
|
||||
ST_DATA int *macro_ptr;
|
||||
ST_DATA const int *macro_ptr;
|
||||
ST_DATA int parse_flags;
|
||||
ST_DATA int tok_flags;
|
||||
ST_DATA CString tokcstr; /* current parsed string, if any */
|
||||
|
||||
Reference in New Issue
Block a user