ref: 7267f1845ababef928b82541085e574a20d29856
parent: 86976ce9f6fdcb42678d18e61f9d64e615bc163c
author: Roberto E. Vargas Caballero <[email protected]>
date: Wed May 30 15:11:48 EDT 2012
Changed name of pushsym to addsym This change is needed because we will use pushsym name later for the evaluation stack (in order to be consistent with the other push operations)
--- a/decl.c
+++ b/decl.c
@@ -250,7 +250,7 @@
t = mktype(t, pop());
ptype(t);
sym = alloca(sizeof(*sym));
- pushsym(siden, sym, symhash);
+ addsym(siden, sym, symhash);
if (yytoken == ',')
continue;
--- a/symbol.c
+++ b/symbol.c
@@ -72,7 +72,7 @@
-struct symbol *pushsym(struct symhash *h,
+struct symbol *addsym(struct symhash *h,
struct symbol *sym, unsigned char hash)
{
--- a/symbol.h
+++ b/symbol.h
@@ -16,5 +16,7 @@
struct symhash;
extern struct symhash *siden, *sgoto, *sstruct;
+struct symbol *
+addsym(struct symhash *h, struct symbol *sym, unsigned char hash);
#endif