scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 7267f1845ababef928b82541085e574a20d29856
parent 86976ce9f6fdcb42678d18e61f9d64e615bc163c
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 30 May 2012 19:11:48 +0200

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)

Diffstat:
Mdecl.c | 2+-
Msymbol.c | 2+-
Msymbol.h | 2++
3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/decl.c b/decl.c @@ -250,7 +250,7 @@ repeat: t = mktype(t, pop()); ptype(t); sym = alloca(sizeof(*sym)); - pushsym(siden, sym, symhash); + addsym(siden, sym, symhash); if (yytoken == ',') continue; diff --git a/symbol.c b/symbol.c @@ -72,7 +72,7 @@ void del_ctx(void) -struct symbol *pushsym(struct symhash *h, +struct symbol *addsym(struct symhash *h, struct symbol *sym, unsigned char hash) { diff --git a/symbol.h b/symbol.h @@ -16,5 +16,7 @@ struct symbol { struct symhash; extern struct symhash *siden, *sgoto, *sstruct; +struct symbol * +addsym(struct symhash *h, struct symbol *sym, unsigned char hash); #endif