aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
authorJoe Soroka <gits@joesoroka.com>2011-07-08 00:55:34 -0700
committerJoe Soroka <gits@joesoroka.com>2011-07-08 00:55:34 -0700
commitd01f65ef935d4d9eb78d4b9442a7538346b1f0a9 (patch)
treeb2e84c9a162a9e8c966af7b447b40946daa1d3c6 /tccpp.c
parentf8656fbc3c3f9830b2c96b0d900bf8740cb5201f (diff)
downloadtinycc-d01f65ef935d4d9eb78d4b9442a7538346b1f0a9.tar.gz
tinycc-d01f65ef935d4d9eb78d4b9442a7538346b1f0a9.tar.bz2
fix end-of-scope for self-referential macros
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tccpp.c b/tccpp.c
index 6aa067f..33c65a4 100644
--- a/tccpp.c
+++ b/tccpp.c
@@ -2689,6 +2689,8 @@ static int macro_subst_tok(TokenString *tok_str,
ml->p = NULL;
*can_read_stream = ml -> prev;
}
+ /* also, end of scope for nested defined symbol */
+ (*nested_list)->v = -1;
goto redo;
}
} else {