ref: bb26fe4e3eb31be8459380fb6ffee8c639bcef34
parent: 7cfabdc237c6b5e499064d71430c0c82f479e3ee
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Oct 28 15:49:17 EDT 2013
don't use _ in abbreviated names We are following this rule in names, so these names were breaking the rule.
--- a/decl.c
+++ b/decl.c
@@ -17,7 +17,7 @@
static void declarator(struct ctype *tp, unsigned char ns);
static void
-dirdcl(register struct ctype *tp, unsigned char ns)
+directdcl(register struct ctype *tp, unsigned char ns)
{
if (accept('(')) {
declarator(tp, ns);
@@ -59,7 +59,7 @@
}
static void
-new_struct(register struct ctype *tp)
+newstruct(register struct ctype *tp)
{
struct symbol *sym = NULL;
@@ -80,7 +80,7 @@
static struct ctype *spec(void);
static struct ctype *
-field_dcl(unsigned char ns)
+fielddcl(unsigned char ns)
{
register struct ctype *tp, *base;
@@ -117,9 +117,9 @@
}
static struct ctype *
-struct_dcl(register struct ctype *tp)
+structdcl(register struct ctype *tp)
{
- new_struct(tp);
+ newstruct(tp);
if (!accept('{'))
return tp;
@@ -127,7 +127,7 @@
error("struct/union already defined");
do
- field_dcl(tp->ns);
+ fielddcl(tp->ns);
while (!accept('}'));
tp->forward = 0;
@@ -135,11 +135,11 @@
}
static struct ctype *
-enum_dcl(struct ctype *base)
+enumdcl(struct ctype *base)
{
short val = 0;
- new_struct(base);
+ newstruct(base);
if (!accept('{'))
return base;
@@ -186,11 +186,11 @@
case ENUM:
tp = btype(tp, yytoken);
next();
- return enum_dcl(tp);
+ return enumdcl(tp);
case STRUCT: case UNION:
tp = btype(tp, yytoken);
next();
- return struct_dcl(tp);
+ return structdcl(tp);
case IDEN:
if (!tp || !tp->type) {
struct symbol *sym;
@@ -256,7 +256,7 @@
if (bp == lim)
error("Too much type declarators");
- dirdcl(tp, ns);
+ directdcl(tp, ns);
for (lim = bp, bp = qlf; bp < lim; ++bp)
pushtype(*bp);