diff options
| author | grischka <grischka> | 2016-10-01 20:04:58 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2016-10-01 20:04:58 +0200 |
| commit | 09a487eb2b2bcabeaeec8d2c7ca422993df0efb5 (patch) | |
| tree | b164eb23745cf39999d7d3e2bf1691a05931977f /libtcc.h | |
| parent | e63011377173062d688a08e8a98abbdada453302 (diff) | |
| download | tinycc-09a487eb2b2bcabeaeec8d2c7ca422993df0efb5.tar.gz tinycc-09a487eb2b2bcabeaeec8d2c7ca422993df0efb5.tar.bz2 | |
libtcc: cleanup -x<filetype> switch code
Abusing filename[0] as type is just too much of a hack.
-- From 05364072042ff37904a7b0b14cdd85a1ea1ca11d
Diffstat (limited to 'libtcc.h')
| -rw-r--r-- | libtcc.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -49,10 +49,10 @@ LIBTCCAPI void tcc_undefine_symbol(TCCState *s, const char *sym); /* add a file (C file, dll, object, library, ld script). Return -1 if error. */ LIBTCCAPI int tcc_add_file(TCCState *s, const char *filename, int filetype); -#define TCC_FILETYPE_BINARY 1 -#define TCC_FILETYPE_C 2 -#define TCC_FILETYPE_ASM 3 -#define TCC_FILETYPE_ASM_PP 4 +#define TCC_FILETYPE_BINARY 'b' +#define TCC_FILETYPE_C 'c' +#define TCC_FILETYPE_ASM 's' +#define TCC_FILETYPE_ASM_PP 'S' /* compile a string containing a C source. Return -1 if error. */ LIBTCCAPI int tcc_compile_string(TCCState *s, const char *buf); |
