scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 401f1f8b893bfcb71ae24e75f8126c2f40558ff9
parent 4245a62bb1889b95733793a3c05f5686f2a2ed26
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 19 Feb 2017 19:25:30 +0100

[cc1] Remove old code from newsym()

Once upon a time when cpp symbols were stored in the same table than
the blocked symbols and this code was a hack to avoid them to be
removed in any popctx(). This is not needed anymore

Diffstat:
Mcc1/symbol.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/symbol.c b/cc1/symbol.c @@ -187,7 +187,7 @@ newsym(int ns, char *name) sym->id = 0; sym->hide = 0; sym->ns = ns; - sym->ctx = (ns == NS_CPP) ? UCHAR_MAX : curctx; + sym->ctx = curctx; sym->token = IDEN; sym->flags = 0; sym->u.s = NULL;