mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
tccpp.c: reset spc after macro_subst_tok()
This bug doesn't seem to affect anything currently, but does interfere with miscellaneous tccpp.c fixes for the test cases described here: http://lists.nongnu.org/archive/html/tinycc-devel/2015-05/msg00002.html
This commit is contained in:
parent
3a922ad2ba
commit
1e878200f7
1
tccpp.c
1
tccpp.c
@ -3120,6 +3120,7 @@ static void macro_subst(TokenString *tok_str, Sym **nested_list,
|
||||
macro_ptr = (int *)ptr;
|
||||
tok = t;
|
||||
ret = macro_subst_tok(tok_str, nested_list, s, can_read_stream);
|
||||
spc = tok_str->len && is_space(tok_str->str[tok_str->len-1]);
|
||||
ptr = (int *)macro_ptr;
|
||||
macro_ptr = ml.p;
|
||||
if (can_read_stream && *can_read_stream == &ml)
|
||||
|
Loading…
Reference in New Issue
Block a user