scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 89d7c924ded8f936c9e2e48ac467f1f14869620a
parent 789d2fd3540d4403d0fc0b0d0c91103d77109c35
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 28 Oct 2013 19:59:25 +0100

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.

Diffstat:
Mdecl.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

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