From 09a487eb2b2bcabeaeec8d2c7ca422993df0efb5 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 1 Oct 2016 20:04:58 +0200 Subject: libtcc: cleanup -x switch code Abusing filename[0] as type is just too much of a hack. -- From 05364072042ff37904a7b0b14cdd85a1ea1ca11d --- libtcc.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libtcc.h') diff --git a/libtcc.h b/libtcc.h index 97b8587..ad081fc 100644 --- a/libtcc.h +++ b/libtcc.h @@ -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); -- cgit v1.3.1