From 85d862310c2e00361f68c317c6256b29f18eae36 Mon Sep 17 00:00:00 2001 From: Teddy Date: Sat, 12 Apr 2014 16:09:14 +0800 Subject: memory leak --- semantics.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'semantics.h') diff --git a/semantics.h b/semantics.h index 00c8525..bcd8ca8 100644 --- a/semantics.h +++ b/semantics.h @@ -129,13 +129,12 @@ struct CSymbol { } rec; }; const char *csymbol_print(void *csym); -CSymbol_t type2sym(CType_t type); -CSymbol_t var2sym(CVar_t var); const char *csym_getname(CSymbol_t csym); CScope_t cscope_create(); CSymbol_t cscope_lookup(CScope_t cs, const char *name, int nspace); -int cscope_push(CScope_t cs, CSymbol_t sym, int nspace); +int cscope_push_var(CScope_t cs, CVar_t var, int nspace); +int cscope_push_type(CScope_t cs, CType_t type, int nspace); void cscope_enter(CScope_t cs); void cscope_exit(CScope_t cs); void cscope_debug_print(CScope_t cs); -- cgit v1.2.3-70-g09d2