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