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
This commit is contained in:
1
tcc.h
1
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 */
|
||||
|
||||
Reference in New Issue
Block a user