4 * Efficient dictionary hash table class.
14 struct hash_tbl_node
{
21 struct hash_tbl_node
*table
;
29 struct hash_table
*head
;
30 struct hash_tbl_node
*where
;
33 uint64_t crc64(const char *string
);
34 uint64_t crc64i(const char *string
);
35 struct hash_table
*hash_init(void);
36 void **hash_find(struct hash_table
*head
, const char *string
,
37 struct hash_insert
*insert
);
38 void **hash_findi(struct hash_table
*head
, const char *string
,
39 struct hash_insert
*insert
);
40 void **hash_add(struct hash_insert
*insert
, const char *string
, void *data
);
41 void *hash_iterate(const struct hash_table
*head
,
42 struct hash_tbl_node
**iterator
,
44 void hash_free(struct hash_table
*head
);
46 #endif /* NASM_HASHTBL_H */