diff options
| author | Philip <pipcet@gmail.com> | 2015-05-02 12:26:10 +0000 |
|---|---|---|
| committer | Philip <pipcet@gmail.com> | 2015-05-02 12:26:10 +0000 |
| commit | 1e878200f7bbabeb36f5d0e941402fed12148cc7 (patch) | |
| tree | 5ecc9b9b1515988e6015737353e2a6e7490189fc | |
| parent | 3a922ad2ba5298e0a84b33cce7fe4bd2dc9622c2 (diff) | |
| download | tinycc-1e878200f7bbabeb36f5d0e941402fed12148cc7.tar.gz tinycc-1e878200f7bbabeb36f5d0e941402fed12148cc7.tar.bz2 | |
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
| -rw-r--r-- | tccpp.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) |
