aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-06-27 16:40:00 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:06 +0100
commit928514954898ee6c05d0495b0f84ed4e3fd42c71 (patch)
tree12f6f4806117ff3f1c0ebcc0fdc8d69a33f715e1 /tcc.h
parent21d2b71b5c1ad1c51866ff8d7a1376f132b1cafa (diff)
downloadtinycc-928514954898ee6c05d0495b0f84ed4e3fd42c71.tar.gz
tinycc-928514954898ee6c05d0495b0f84ed4e3fd42c71.tar.bz2
Implement -include cmdline option
This option includes a file as if '#include "file"' is the first line of compiled files. It's processed after all -D/-U options and is processed per input file.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index 47af365..1e2b815 100644
--- a/tcc.h
+++ b/tcc.h
@@ -661,6 +661,10 @@ struct TCCState {
char **crt_paths;
int nb_crt_paths;
+ /* -include files */
+ char **cmd_include_files;
+ int nb_cmd_include_files;
+
/* error handling */
void *error_opaque;
void (*error_func)(void *opaque, const char *msg);