diff options
| author | seyko <seyko2@gmail.com> | 2015-11-05 19:52:49 +0300 |
|---|---|---|
| committer | seyko <seyko2@gmail.com> | 2015-11-05 19:52:49 +0300 |
| commit | a6276b7a7846a59b06b1909c63435b580b8c4d29 (patch) | |
| tree | 4294e494cf003e818938de512d935f40244a8690 /tcc.h | |
| parent | 45bc50596874ec7cb26aac3dca3339ba25086436 (diff) | |
| download | tinycc-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |
