summaryrefslogtreecommitdiff
path: root/parse/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse/node.c')
-rw-r--r--parse/node.c6
1 files changed, 4 insertions, 2 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);
}