[hackers] [scc] Discard symbol in undef() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 18 Jul 2015 07:32:10 +0200 (CEST)

commit dbb2ca15669b9542a46f2232ce74c3f95afd2902
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Jul 18 00:06:34 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Jul 18 07:22:29 2015 +0200

    Discard symbol in undef()
    
    Once that the symbol is undefined, then we have to pass
    to the next symbol, which should be EOF.

diff --git a/cc1/cpp.c b/cc1/cpp.c
index 30a3b20..3eecc54 100644
--- a/cc1/cpp.c
+++ b/cc1/cpp.c
_AT_@ -512,6 +512,7 @@ undef(void)
         }
         sym = lookup(NS_CPP);
         sym->flags &= ~ISDEFINED;
+ next();
 }
 
 bool
Received on Sat Jul 18 2015 - 07:32:10 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 18 2015 - 07:36:28 CEST