aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip <pipcet@gmail.com>2015-05-02 12:26:10 +0000
committerPhilip <pipcet@gmail.com>2015-05-02 12:26:10 +0000
commit1e878200f7bbabeb36f5d0e941402fed12148cc7 (patch)
tree5ecc9b9b1515988e6015737353e2a6e7490189fc
parent3a922ad2ba5298e0a84b33cce7fe4bd2dc9622c2 (diff)
downloadtinycc-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tccpp.c b/tccpp.c
index 05aa9d5..d097776 100644
--- a/tccpp.c
+++ b/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)