aboutsummaryrefslogtreecommitdiff
path: root/src/hashtable.c
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2024-09-08 18:36:07 +0300
committerkartofen <mladenovnasko0@gmail.com>2024-09-08 18:36:07 +0300
commit4308cd4abe5a75fb8410df929eac687cbd04032b (patch)
tree4a5871db2168cb96deab29be7aed36262511c0c1 /src/hashtable.c
parentdb32849ce314a93db01f877a057a91022fec7c8b (diff)
update mempool and add implement hash array mapped trie (not integrated)
Diffstat (limited to 'src/hashtable.c')
-rw-r--r--src/hashtable.c9
1 files changed, 2 insertions, 7 deletions
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