aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorgrischka <grischka>2016-10-01 20:04:58 +0200
committergrischka <grischka>2016-10-01 20:04:58 +0200
commit09a487eb2b2bcabeaeec8d2c7ca422993df0efb5 (patch)
treeb164eb23745cf39999d7d3e2bf1691a05931977f /tcc.h
parente63011377173062d688a08e8a98abbdada453302 (diff)
downloadtinycc-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 'tcc.h')
-rw-r--r--tcc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tcc.h b/tcc.h
index cfff7cf..42088e1 100644
--- a/tcc.h
+++ b/tcc.h
@@ -850,7 +850,7 @@ struct TCCState {
#endif
/* used by main and tcc_parse_args only */
- char **files; /* files seen on command line */
+ struct filespec **files; /* files seen on command line */
int nb_files; /* number thereof */
int nb_libraries; /* number of libs thereof */
char *outfile; /* output filename */
@@ -863,6 +863,10 @@ struct TCCState {
ParseArgsState *parse_args_state;
};
+struct filespec {
+ char type, name[1];
+};
+
/* The current value can be: */
#define VT_VALMASK 0x003f /* mask for value location, register or: */
#define VT_CONST 0x0030 /* constant in vc (must be first non register value) */