summaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
Diffstat (limited to 'parse')
-rw-r--r--parse/node.c6
-rw-r--r--parse/parse.h4
2 files changed, 6 insertions, 4 deletions
diff --git a/parse/node.c b/parse/node.c
index 4ba6211..a13a737 100644
--- a/parse/node.c
+++ b/parse/node.c
@@ -363,13 +363,15 @@ static size_t did(Node *n)
return 0;
}
-ulong dclhash(void *dcl)
+/* Hashes a Ovar expr or an Ndecl */
+ulong varhash(void *dcl)
{
/* large-prime hash. meh. */
return did(dcl) * 366787;
}
-int dcleq(void *a, void *b)
+/* Checks if the did of two vars are equal */
+int vareq(void *a, void *b)
{
return did(a) == did(b);
}
diff --git a/parse/parse.h b/parse/parse.h
index 6bfef40..d800dcc 100644
--- a/parse/parse.h
+++ b/parse/parse.h
@@ -403,8 +403,8 @@ Type *nodetype(Node *n);
void addstmt(Node *file, Node *stmt);
void setns(Node *n, char *ns);
void updatens(Stab *st, char *ns);
-ulong dclhash(void *dcl);
-int dcleq(void *a, void *b);
+ulong varhash(void *dcl);
+int vareq(void *a, void *b);
Op exprop(Node *n);
/* specialize generics */