diff options
author | Teddy <[email protected]> | 2014-04-12 16:09:14 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2014-04-12 16:09:14 +0800 |
commit | 85d862310c2e00361f68c317c6256b29f18eae36 (patch) | |
tree | e7c0581472045c1b9327c033a6f3874be25ae79f /semantics.h | |
parent | 63e795cad88cb52ecdf46f90584867ae22939058 (diff) |
memory leaknew_scope_design
Diffstat (limited to 'semantics.h')
-rw-r--r-- | semantics.h | 5 |
1 files changed, 2 insertions, 3 deletions
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); |