diff options
Diffstat (limited to 'ht.h')
-rw-r--r-- | ht.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |