Move a line_ref variable from tcc_preprocess() function into struct BufferedFile.

This id needed for a right ouput in other places,
precisely to calculate a number of empty lines which are waiting to output.
This commit is contained in:
seyko
2015-03-03 14:15:28 +03:00
parent 5e3e321474
commit 40418f87c7
2 changed files with 6 additions and 5 deletions

1
tcc.h
View File

@ -500,6 +500,7 @@ typedef struct BufferedFile {
int fd;
struct BufferedFile *prev;
int line_num; /* current line number - here to simplify code */
int line_ref; /* moved from tcc_preprocess(), needed for a right ouput in other places */
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 */