aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrischka <grischka>2012-04-18 18:43:29 +0200
committergrischka <grischka>2012-04-18 18:43:29 +0200
commit3c59f8424048fdc2f7b7ce8d840351ef2fb212b4 (patch)
treeba4782a7bfc179cc074ad37c90f2cd7778495105
parentab936aeb8cf14891d2f86aa170bc336a8d886677 (diff)
downloadtinycc-3c59f8424048fdc2f7b7ce8d840351ef2fb212b4.tar.gz
tinycc-3c59f8424048fdc2f7b7ce8d840351ef2fb212b4.tar.bz2
tcc.h: unify multiple #ifdef CONFIG_TCC_BACKTRACE
-rw-r--r--tcc.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/tcc.h b/tcc.h
index 3cd6844..041ede7 100644
--- a/tcc.h
+++ b/tcc.h
@@ -956,12 +956,6 @@ ST_DATA int tcc_ext;
/* XXX: get rid of this ASAP */
ST_DATA struct TCCState *tcc_state;
-#ifdef CONFIG_TCC_BACKTRACE
-ST_DATA int rt_num_callers;
-ST_DATA const char **rt_bound_error_msg;
-ST_DATA void *rt_prog_main;
-#endif
-
#define AFF_PRINT_ERROR 0x0001 /* print error if file not found */
#define AFF_REFERENCED_DLL 0x0002 /* load a referenced dll from another dll */
#define AFF_PREPROCESS 0x0004 /* preprocess file */
@@ -1030,9 +1024,6 @@ PUB_FUNC int tcc_set_flag(TCCState *s, const char *flag_name, int value);
PUB_FUNC void tcc_print_stats(TCCState *s, int64_t total_time);
PUB_FUNC char *tcc_default_target(TCCState *s, const char *default_file);
PUB_FUNC void tcc_gen_makedeps(TCCState *s, const char *target, const char *filename);
-#ifdef CONFIG_TCC_BACKTRACE
-PUB_FUNC void tcc_set_num_callers(int n);
-#endif
/* ------------ tccpp.c ------------ */
@@ -1338,6 +1329,14 @@ ST_FUNC void *resolve_sym(TCCState *s1, const char *symbol);
#elif !defined TCC_TARGET_PE || !defined _WIN32
ST_FUNC void *resolve_sym(TCCState *s1, const char *symbol);
#endif
+
+#ifdef CONFIG_TCC_BACKTRACE
+ST_DATA int rt_num_callers;
+ST_DATA const char **rt_bound_error_msg;
+ST_DATA void *rt_prog_main;
+PUB_FUNC void tcc_set_num_callers(int n);
+#endif
+
/********************************************************/
/* include the target specific definitions */