aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorgrischka <grischka>2017-06-05 13:21:39 +0200
committergrischka <grischka>2017-07-09 11:46:14 +0200
commit6c468c10f70d74e962591a0584765e42ce1bcaf2 (patch)
tree2d56ee0017b4b95afdd1bd47b8f2c8131ed06418 /tcc.h
parent824dcebe59f52a686b003214c1af0633cf5fe89e (diff)
downloadtinycc-6c468c10f70d74e962591a0584765e42ce1bcaf2.tar.gz
tinycc-6c468c10f70d74e962591a0584765e42ce1bcaf2.tar.bz2
tccpp: allow "#define X defined Y ..."
That means: we do not macro-expand the argument of 'defined' Also: store the last token position into the TokenString structure in order to get rid of the tok_last function.
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 cbced87..67d09a0 100644
--- a/tcc.h
+++ b/tcc.h
@@ -561,6 +561,7 @@ typedef struct ParseState {
typedef struct TokenString {
int *str;
int len;
+ int lastlen;
int allocated_len;
int last_line_num;
/* used to chain token-strings with begin/end_macro() */