From 4308cd4abe5a75fb8410df929eac687cbd04032b Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 8 Sep 2024 18:36:07 +0300 Subject: update mempool and add implement hash array mapped trie (not integrated) --- src/hashtable.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/hashtable.c') diff --git a/src/hashtable.c b/src/hashtable.c index 955a3bf..e9845f2 100644 --- a/src/hashtable.c +++ b/src/hashtable.c @@ -5,13 +5,8 @@ #include "hashtable.h" #include "mempool.h" - -#define MEMPOOL_CAP 32 -#define MEMPOOL_OBJ_TYPE struct hashtable -MEMPOOL_GENERATE(ht) -#define MEMPOOL_CAP 128 -#define MEMPOOL_OBJ_TYPE struct hashtable_item -MEMPOOL_GENERATE(hi) +MEMPOOL_GENERATE(ht, struct hashtable, 32) +MEMPOOL_GENERATE(hi, struct hashtable_item, 128) // TODO: // - insertion options -- cgit v1.2.3