shithub: scc

Download patch

ref: 620b4d63082783d846415b9e240f256f11b16e51
parent: d65e66829ce3e79ffb92fd58675f5e655561a37a
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Mar 11 12:31:02 EDT 2014

Small style changes

--- a/decl.c
+++ b/decl.c
@@ -191,7 +191,10 @@
 			switch (tok) {
 			case ENUM: case STRUCT: case UNION:
 				next();
-				(tok == ENUM) ? enumdcl(tp) : structdcl(tp);
+				if (tok == ENUM)
+					enumdcl(tp);
+				else
+					structdcl(tp);
 				return true;
 			case TYPEDEF:
 				tp->base = &yyval->ctype;
--- a/symbol.h
+++ b/symbol.h
@@ -13,7 +13,6 @@
 enum {
 	NS_IDEN = 0,
 	NS_TYPE,
-	NS_KEYWORD,
 	NS_LABEL,
 	NS_TAG
 };