aboutsummaryrefslogtreecommitdiff
path: root/semantics.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-03-26 20:30:25 +0800
committerTeddy <ted.sybil@gmail.com>2014-03-26 20:30:25 +0800
commitcd34e28676aa32fdc60c2ba54d6f4f6dbba33132 (patch)
treeaf1eaee19202afe840b9b8ac0a7acb58ceea2bed /semantics.h
parent3599a86d68c664f24fce8c853f482cad0af6ed6a (diff)
add naming conflict report; add autoforce test
Diffstat (limited to 'semantics.h')
-rw-r--r--semantics.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/semantics.h b/semantics.h
index 93ab787..166f9a8 100644
--- a/semantics.h
+++ b/semantics.h
@@ -70,8 +70,8 @@ CTable_t ctable_create(Hashfunc_t hfunc, Printfunc_t pfunc);
CTable_t ctable_create(Hashfunc_t hfunc);
#endif
void *ctable_lookup(CTable_t ct, const char *key);
-void ctable_insert(CTable_t ct, const char *key, void *val, int lvl);
-void ctable_clip(CTable_t ct, unsigned int hv, int max_lvl);
+int ctable_insert(CTable_t ct, const char *key, void *val, int lvl);
+void ctable_clip(CTable_t ct, const char *key, int max_lvl);
void ctable_debug_print(CTable_t ct);
typedef struct CSNode {
@@ -91,8 +91,8 @@ typedef struct CScope {
CScope_t cscope_create();
CVar *cscope_lookup_var(CScope_t cs, const char *name);
CType *cscope_lookup_type(CScope_t cs, const char *name);
-void cscope_push_var(CScope_t cs, CVar *var);
-void cscope_push_type(CScope_t cs, CType *type);
+int cscope_push_var(CScope_t cs, CVar *var);
+int cscope_push_type(CScope_t cs, CType *type);
void cscope_enter(CScope_t cs);
void cscope_exit(CScope_t cs);
void cscope_debug_print(CScope_t cs);