scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 0ee2df022f9a2b54b708960f23be30580b2b7c77
parent aaf9dd81207b3944018233ca15f6befa871aaf0f
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 27 Jul 2015 12:18:39 +0200

Small style change in cpp.c

Diffstat:
cc1/cpp.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cc1/cpp.c b/cc1/cpp.c @@ -548,7 +548,7 @@ bool cpp(void) { static struct { - uint8_t tok; + uint8_t token; void (*fun)(void); } *bp, clauses [] = { {DEFINE, define}, @@ -574,9 +574,9 @@ cpp(void) 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)();