Abusing filename[0] as type is just too much of a hack. -- From 05364072042ff37904a7b0b14cdd85a1ea1ca11d
Showing the changes to tcc.h (1 of 4 files). Show all
Unified · Split
| @@ -850,7 +850,7 @@ struct TCCState { · 849 unmodified lines | ||
| 850 | 850 | #endif |
| 851 | 851 | |
| 852 | 852 | /* used by main and tcc_parse_args only */ |
| 853 | − char **files; /* files seen on command line */ | |
| 853 | + struct filespec **files; /* files seen on command line */ | |
| 854 | 854 | int nb_files; /* number thereof */ |
| 855 | 855 | int nb_libraries; /* number of libs thereof */ |
| 856 | 856 | char *outfile; /* output filename */ |
| @@ -863,6 +863,10 @@ struct TCCState { · 6 unmodified lines | ||
| 863 | 863 | ParseArgsState *parse_args_state; |
| 864 | 864 | }; |
| 865 | 865 | |
| 866 | +struct filespec { | |
| 867 | + char type, name[1]; | |
| 868 | +}; | |
| 869 | + | |
| 866 | 870 | /* The current value can be: */ |
| 867 | 871 | #define VT_VALMASK 0x003f /* mask for value location, register or: */ |
| 868 | 872 | #define VT_CONST 0x0030 /* constant in vc (must be first non register value) */ |