From 9b0ddd467c52c2848efa28f5faa3f2be9b6cc384 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 17 Feb 2023 18:11:28 +0100 Subject: Switched to CHAMP library --- inc/hamt.h | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 inc/hamt.h (limited to 'inc/hamt.h') diff --git a/inc/hamt.h b/inc/hamt.h deleted file mode 100644 index da5f876..0000000 --- a/inc/hamt.h +++ /dev/null @@ -1,30 +0,0 @@ -#ifndef HAMT_H -#define HAMT_H - -#include -#include -#include - -typedef int (*hamt_cmp_fn)(const void *lhs, const void *rhs); -typedef uint32_t (*hamt_key_hash_fn)(const void *key, const size_t gen); - -typedef struct hamt_impl *HAMT; - -struct hamt_allocator { - void *(*malloc)(const size_t size); - void *(*realloc)(void *chunk, const size_t size); - void (*free)(void *chunk); -}; - -extern struct hamt_allocator hamt_allocator_default; - -HAMT hamt_create(hamt_key_hash_fn key_hash, hamt_cmp_fn key_cmp, - struct hamt_allocator *ator); -void hamt_delete(HAMT); - -void *hamt_get(const HAMT trie, void *key); -HAMT hamt_pset(const HAMT trie, void *key, void *value); - -typedef struct hamt_iterator_impl *hamt_iterator; - -#endif -- cgit v1.2.3