[hackers] [scc] [cc1] Remove old code from newsym() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sun, 19 Feb 2017 19:27:30 +0100 (CET)

commit 401f1f8b893bfcb71ae24e75f8126c2f40558ff9
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sun Feb 19 19:25:30 2017 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sun Feb 19 19:25:30 2017 +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

diff --git a/cc1/symbol.c b/cc1/symbol.c
index 6953db8..0053ba3 100644
--- a/cc1/symbol.c
+++ b/cc1/symbol.c
_AT_@ -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;
Received on Sun Feb 19 2017 - 19:27:30 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 19 2017 - 19:36:18 CET