aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h6
1 files changed, 3 insertions, 3 deletions
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 */