aboutsummaryrefslogtreecommitdiff
path: root/src/hashtable.c
diff options
context:
space:
mode:
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