shithub: scc

Download patch

ref: 0ee2df022f9a2b54b708960f23be30580b2b7c77
parent: aaf9dd81207b3944018233ca15f6befa871aaf0f
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Jul 27 08:18:39 EDT 2015

Small style change in cpp.c

--- a/cc1/cpp.c
+++ b/cc1/cpp.c
@@ -548,7 +548,7 @@
 cpp(void)
 {
 	static struct {
-		uint8_t tok;
+		uint8_t token;
 		void (*fun)(void);
 	} *bp, clauses [] = {
 		{DEFINE, define},
@@ -574,9 +574,9 @@
 	lexmode = CPPMODE;
 	setnamespace(NS_CPPCLAUSES);
 	next();
-	for (bp = clauses; bp->tok && bp->tok != yytoken; ++bp)
+	for (bp = clauses; bp->token && bp->token != yytoken; ++bp)
 		/* nothing */;
-	if (!bp->tok)
+	if (!bp->token)
 		error("incorrect preprocessor directive");
 	next();
 	(*bp->fun)();