aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorgrischka <grischka>2015-11-20 12:05:55 +0100
committergrischka <grischka>2015-11-20 12:05:55 +0100
commit0b3612631f49ba0c008635aaa46ecf8be2eefcf7 (patch)
tree094ae28bce513d84ca9a9f2f1d432505987e00ed /tcc.h
parent54cf57ab1a85df3679cd9a7ecec097f04d3fd82f (diff)
downloadtinycc-0b3612631f49ba0c008635aaa46ecf8be2eefcf7.tar.gz
tinycc-0b3612631f49ba0c008635aaa46ecf8be2eefcf7.tar.bz2
tccpp: cleanup #include_next
tcc_normalize_inc_dirs: normally no problem to be absolutly gcc compatible as long as it can be done the tiny way. This reverts to the state before recent related commits and reimplements a (small) part of it to fix the reported problem. Also: Revert "parsing "..." sequence" c3975cf27c792d493e76a2058a1eaf588324053e && p[1] == '.' is not a reliable way to lookahead
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcc.h b/tcc.h
index 06b80fe..05e3965 100644
--- a/tcc.h
+++ b/tcc.h
@@ -536,10 +536,10 @@ 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 */
+ int include_next_index; /* next search path */
char filename[1024]; /* filename */
unsigned char unget[4];
unsigned char buffer[1]; /* extra size for CH_EOB char */