shithub: scc

Download patch

ref: 9e97f6d8b18b7334e1f45e09e3a27c59989d2c86
parent: 65457f98c6d5440e3f5f888c861d18e18b6013e7
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Jan 20 06:09:19 EST 2016

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.

--- a/cc1/init.c
+++ b/cc1/init.c
@@ -66,6 +66,7 @@
 	}
 	for (p = tp->p.fields; *p != sym; ++p)
 		/* nothing */;
+	next();
 	return p - tp->p.fields;
 }