Unified · Split
| @@ -956,12 +956,6 @@ ST_DATA int tcc_ext; · 955 unmodified lines | |||
| 956 | /* XXX: get rid of this ASAP */ | 956 | /* XXX: get rid of this ASAP */ |
| 957 | ST_DATA struct TCCState *tcc_state; | 957 | ST_DATA struct TCCState *tcc_state; |
| 958 | 958 | ||
| 959 | #ifdef CONFIG_TCC_BACKTRACE | ||
| 960 | ST_DATA int rt_num_callers; | ||
| 961 | ST_DATA const char **rt_bound_error_msg; | ||
| 962 | ST_DATA void *rt_prog_main; | ||
| 963 | #endif | ||
| 964 | |||
| 965 | #define AFF_PRINT_ERROR 0x0001 /* print error if file not found */ | 959 | #define AFF_PRINT_ERROR 0x0001 /* print error if file not found */ |
| 966 | #define AFF_REFERENCED_DLL 0x0002 /* load a referenced dll from another dll */ | 960 | #define AFF_REFERENCED_DLL 0x0002 /* load a referenced dll from another dll */ |
| 967 | #define AFF_PREPROCESS 0x0004 /* preprocess file */ | 961 | #define AFF_PREPROCESS 0x0004 /* preprocess file */ |
| @@ -1030,9 +1024,6 @@ PUB_FUNC int tcc_set_flag(TCCState *s, const char *flag_name, int value); · 62 unmodified lines | |||
| 1030 | PUB_FUNC void tcc_print_stats(TCCState *s, int64_t total_time); | 1024 | PUB_FUNC void tcc_print_stats(TCCState *s, int64_t total_time); |
| 1031 | PUB_FUNC char *tcc_default_target(TCCState *s, const char *default_file); | 1025 | PUB_FUNC char *tcc_default_target(TCCState *s, const char *default_file); |
| 1032 | PUB_FUNC void tcc_gen_makedeps(TCCState *s, const char *target, const char *filename); | 1026 | PUB_FUNC void tcc_gen_makedeps(TCCState *s, const char *target, const char *filename); |
| 1033 | #ifdef CONFIG_TCC_BACKTRACE | ||
| 1034 | PUB_FUNC void tcc_set_num_callers(int n); | ||
| 1035 | #endif | ||
| 1036 | 1027 | ||
| 1037 | /* ------------ tccpp.c ------------ */ | 1028 | /* ------------ tccpp.c ------------ */ |
| 1038 | 1029 | ||
| @@ -1338,6 +1329,14 @@ ST_FUNC void *resolve_sym(TCCState *s1, const char *symbol); · 299 unmodified lines | |||
| 1338 | #elif !defined TCC_TARGET_PE || !defined _WIN32 | 1329 | #elif !defined TCC_TARGET_PE || !defined _WIN32 |
| 1339 | ST_FUNC void *resolve_sym(TCCState *s1, const char *symbol); | 1330 | ST_FUNC void *resolve_sym(TCCState *s1, const char *symbol); |
| 1340 | #endif | 1331 | #endif |
| 1332 | |||
| 1333 | #ifdef CONFIG_TCC_BACKTRACE | ||
| 1334 | ST_DATA int rt_num_callers; | ||
| 1335 | ST_DATA const char **rt_bound_error_msg; | ||
| 1336 | ST_DATA void *rt_prog_main; | ||
| 1337 | PUB_FUNC void tcc_set_num_callers(int n); | ||
| 1338 | #endif | ||
| 1339 | |||
| 1341 | /********************************************************/ | 1340 | /********************************************************/ |
| 1342 | /* include the target specific definitions */ | 1341 | /* include the target specific definitions */ |
| 1343 | 1342 | ||