summaryrefslogtreecommitdiff
path: root/ht.h
diff options
context:
space:
mode:
Diffstat (limited to 'ht.h')
-rw-r--r--ht.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ht.h b/ht.h
index e0e6560..36a1d2a 100644
--- a/ht.h
+++ b/ht.h
@@ -17,10 +17,11 @@ typedef struct _ht {
HtEntry *d;
} Ht;
-uint32_t hash(char *s, size_t len);
+uint32_t hash_string(char *s, size_t len);
Ht ht_new();
void ht_put(State *S, Ht *h, ObjString *k, Val v);
Val ht_get(State *S, Ht *h, ObjString *k);
+ObjString *ht_findstring(State *S, Ht *h, char *s, size_t len, uint32_t hash);
#endif