summaryrefslogtreecommitdiff
path: root/hashtbl.h
diff options
context:
space:
mode:
Diffstat (limited to 'hashtbl.h')
-rw-r--r--hashtbl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/hashtbl.h b/hashtbl.h
index a5211414..c8f23bd4 100644
--- a/hashtbl.h
+++ b/hashtbl.h
@@ -30,8 +30,10 @@ struct hash_insert {
struct hash_tbl_node *where;
};
-uint64_t crc64(const char *string);
-uint64_t crc64i(const char *string);
+uint64_t crc64(uint64_t crc, const char *string);
+uint64_t crc64i(uint64_t crc, const char *string);
+#define CRC64_INIT UINT64_C(0xffffffffffffffff)
+
struct hash_table *hash_init(void);
void **hash_find(struct hash_table *head, const char *string,
struct hash_insert *insert);