[hackers] [scc] Discard field name in fielddesig() || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 20 Jan 2016 16:02:23 +0100 (CET)

commit 9e97f6d8b18b7334e1f45e09e3a27c59989d2c86
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Jan 20 11:09:19 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Jan 20 11:09:19 2016 +0100

    Discard field name in fielddesig()
    
    Once the field was read we don't need the token anymore,
    and we have to pass to the next token.

diff --git a/cc1/init.c b/cc1/init.c
index 4ac5996..4ed9640 100644
--- a/cc1/init.c
+++ b/cc1/init.c
_AT_@ -66,6 +66,7 @@ fielddesig(Init *ip)
         }
         for (p = tp->p.fields; *p != sym; ++p)
                 /* nothing */;
+ next();
         return p - tp->p.fields;
 }
 
Received on Wed Jan 20 2016 - 16:02:23 CET

This archive was generated by hypermail 2.3.0 : Wed Jan 20 2016 - 16:12:20 CET