shithub: scc

Download patch

ref: 89d7c924ded8f936c9e2e48ac467f1f14869620a
parent: 789d2fd3540d4403d0fc0b0d0c91103d77109c35
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon Oct 28 15:59:25 EDT 2013

Change spec to specifier

spec was a non clear abbreviature of specifier, and since we
can use a longer name here, specifier is better than spec.

--- a/decl.c
+++ b/decl.c
@@ -77,7 +77,7 @@
 	tp->sym = sym;
 }
 
-static struct ctype *spec(void);
+static struct ctype *specifier(void);
 
 static struct ctype *
 fielddcl(unsigned char ns)
@@ -84,7 +84,7 @@
 {
 	register struct ctype *tp, *base;
 
-	if (!(base = spec())) {
+	if (!(base = specifier())) {
 		base = newctype();
 		base->type = INT;
 		warn(options.implicit,
@@ -166,7 +166,7 @@
 }
 
 struct ctype *
-spec(void)
+specifier(void)
 {
 	register struct ctype *tp = NULL;
 
@@ -317,7 +317,7 @@
 {
 	register struct ctype *base;
 
-repeat: if (!(base = spec())) {
+repeat: if (!(base = specifier())) {
 		if (curctx != CTX_OUTER || yytoken != IDEN)
 			return NULL;
 		base = newctype();
--