From 4e5170d4a59a6cadb3d11d918f5dd674141e3266 Mon Sep 17 00:00:00 2001 From: grischka Date: Thu, 14 Jan 2010 20:58:03 +0100 Subject: tccpp: convert TOK_GET macro into function --- tcc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 55f3626..3481f64 100644 --- a/tcc.h +++ b/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 */ -- cgit v1.3.1