aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorgrischka <grischka>2009-05-11 18:45:44 +0200
committergrischka <grischka>2009-05-11 18:45:44 +0200
commitf9181416f604c1c0715fc538316948a9f957a3c3 (patch)
tree44b516fd9c79bd470322480540feda94acb2c6d9 /tcc.h
parent5c6509578e78db8978b19ab81c4f26398f13c82d (diff)
downloadtinycc-f9181416f604c1c0715fc538316948a9f957a3c3.tar.gz
tinycc-f9181416f604c1c0715fc538316948a9f957a3c3.tar.bz2
move some global variables into TCCState
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/tcc.h b/tcc.h
index 2890493..f0a8254 100644
--- a/tcc.h
+++ b/tcc.h
@@ -385,7 +385,6 @@ struct TCCState {
int nostdinc; /* if true, no standard headers are added */
int nostdlib; /* if true, no standard libraries are added */
-
int nocommon; /* if true, do not use common symbols for .bss data */
/* if true, static linking is performed */
@@ -418,6 +417,15 @@ struct TCCState {
int warn_none;
int warn_implicit_function_declaration;
+ /* display some information during compilation */
+ int verbose;
+ /* compile with debug symbol (and use them if error during execution) */
+ int do_debug;
+ /* compile with built-in memory and bounds checker */
+ int do_bounds_check;
+ /* give the path of the tcc libraries */
+ const char *tcc_lib_path;
+
/* error handling */
void *error_opaque;
void (*error_func)(void *opaque, const char *msg);
@@ -842,6 +850,11 @@ static int tcc_assemble(TCCState *s1, int do_preprocess);
static void asm_instr(void);
static void asm_global_instr(void);
+#ifdef CONFIG_TCC_BACKTRACE
+extern int num_callers;
+extern const char **rt_bound_error_msg;
+#endif
+
/* true if float/double/long double type */
static inline int is_float(int t)
{