aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-03 14:15:28 +0300
committerseyko <seyko2@gmail.com>2015-03-03 14:15:28 +0300
commit40418f87c7da9d3358363769fb13c558b43f2847 (patch)
tree51fca3eb3e2e7cfc6bda4c4b124df44c3aff818d /tcc.h
parent5e3e32147473504c01125cea16f8d047c8e63766 (diff)
downloadtinycc-40418f87c7da9d3358363769fb13c558b43f2847.tar.gz
tinycc-40418f87c7da9d3358363769fb13c558b43f2847.tar.bz2
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.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index 0a05232..e77a3fb 100644
--- a/tcc.h
+++ b/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 */