Unified · Split
| @@ -1,6 +1,10 @@ | |||
| 1 | #ifndef LIBTCC_H | 1 | #ifndef LIBTCC_H |
| 2 | #define LIBTCC_H | 2 | #define LIBTCC_H |
| 3 | 3 | ||
| 4 | #ifdef __cplusplus | ||
| 5 | extern "C" { | ||
| 6 | #endif | ||
| 7 | |||
| 4 | struct TCCState; | 8 | struct TCCState; |
| 5 | 9 | ||
| 6 | typedef struct TCCState TCCState; | 10 | typedef struct TCCState TCCState; |
| @@ -18,6 +22,9 @@ void tcc_enable_debug(TCCState *s); · 11 unmodified lines | |||
| 18 | void tcc_set_error_func(TCCState *s, void *error_opaque, | 22 | void tcc_set_error_func(TCCState *s, void *error_opaque, |
| 19 | void (*error_func)(void *opaque, const char *msg)); | 23 | void (*error_func)(void *opaque, const char *msg)); |
| 20 | 24 | ||
| 25 | /* set/reset a warning */ | ||
| 26 | int tcc_set_warning(TCCState *s, const char *warning_name, int value); | ||
| 27 | |||
| 21 | /*****************************/ | 28 | /*****************************/ |
| 22 | /* preprocessor */ | 29 | /* preprocessor */ |
| 23 | 30 | ||
| @@ -79,4 +86,8 @@ int tcc_relocate(TCCState *s); · 55 unmodified lines | |||
| 79 | /* return symbol value or error */ | 86 | /* return symbol value or error */ |
| 80 | void *tcc_get_symbol(TCCState *s, const char *name); | 87 | void *tcc_get_symbol(TCCState *s, const char *name); |
| 81 | 88 | ||
| 89 | #ifdef __cplusplus | ||
| 90 | } | ||
| 91 | #endif | ||
| 92 | |||
| 82 | #endif | 93 | #endif |