aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-11-05 19:52:49 +0300
committerseyko <seyko2@gmail.com>2015-11-05 19:52:49 +0300
commita6276b7a7846a59b06b1909c63435b580b8c4d29 (patch)
tree4294e494cf003e818938de512d935f40244a8690 /tcc.h
parent45bc50596874ec7cb26aac3dca3339ba25086436 (diff)
downloadtinycc-a6276b7a7846a59b06b1909c63435b580b8c4d29.tar.gz
tinycc-a6276b7a7846a59b06b1909c63435b580b8c4d29.tar.bz2
normalize inc dirs, symplify include_next
include dirs are prepared as in gcc - for each duplicate path keep just the first one - remove each include_path that exists in sysinclude_paths include_next streamlined by introducing inc_path_index in the BufferedFile
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index bd39a7e..01ed16f 100644
--- a/tcc.h
+++ b/tcc.h
@@ -501,6 +501,7 @@ typedef struct BufferedFile {
struct BufferedFile *prev;
int line_num; /* current line number - here to simplify code */
int line_ref; /* tcc -E: last printed line */
+ int inc_path_index;
int ifndef_macro; /* #ifndef macro / #endif search */
int ifndef_macro_saved; /* saved ifndef_macro */
int *ifdef_stack_ptr; /* ifdef_stack value at the start of the file */