scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 7a5dbbc2d23f9d545fe95ef336d3ef1e7bf4d831
parent f9e48140e72d80782d7962ad7424e3bd5141a008
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 26 Oct 2022 15:18:39 +0200

cc1: Simplify decl()

Diffstat:
Msrc/cmd/cc/cc1/decl.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/cmd/cc/cc1/decl.c b/src/cmd/cc/cc1/decl.c @@ -1001,10 +1001,10 @@ decl(void) if (accept(';')) return; + sym = dodcl(REP, identifier, NS_IDEN, NULL); - if (sym->type->prop & TFUNDEF) - return; - expect(';'); + if ((sym->type->prop & TFUNDEF) == 0) + expect(';'); } static void