ref: a91ac5f206e09a9f469430ee20f33eba870cfd9c
parent: 34a2f1d2c53189e62586d8b42d82c12b7aacd503
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Jul 11 18:59:14 EDT 2014
Add Funpar for struct funpar All the others main structures have a typedef, so it is logical add one for struct funpar.
--- a/cc1/cc1.h
+++ b/cc1/cc1.h
@@ -12,7 +12,7 @@
unsigned char pcompare;
};
-extern struct user_opt options;
+extern struct user_opt options;
extern void error(const char *fmt, ...);
extern void warn(signed char flag, const char *fmt, ...);
extern void unexpected(void);
@@ -31,6 +31,7 @@
typedef struct ctype Type;
typedef struct symbol Symbol;
+typedef struct funpar Funpar;
typedef struct field {
char *name;
--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -15,7 +15,7 @@
union {
unsigned short nelem;
Symbol *sym;
- struct funpar *pars;
+ Funpar *pars;
uint8_t qlf;
} u;
};
@@ -46,7 +46,7 @@
dp->u.pars = NULL;
do {
- struct funpar *fp;
+ Funpar *fp;
Type *tp;
if ((tp = parameter()) == voidtype) {
@@ -62,7 +62,7 @@
if (!dp->u.pars) {
dp->u.pars = fp;
} else {
- register struct funpar *p, *q;
+ register Funpar *p, *q;
for (p = dp->u.pars; q = p->next; p = q)
/* nothing */;