From a6276b7a7846a59b06b1909c63435b580b8c4d29 Mon Sep 17 00:00:00 2001 From: seyko Date: Thu, 5 Nov 2015 19:52:49 +0300 Subject: 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 --- tcc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tcc.h') 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 */ -- cgit v1.3.1