X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fhashtable.h;h=1c40ea9d6729f3f7b61a75838fd9015d5e5852f1;hb=c673da72822d7704572716de80402829921efdc3;hp=10aee8bb2cfd22ac1281b0e5fc5344636b825f13;hpb=b9dcabfafb779bc9c7a6104869c110c78f312c2d;p=libucw.git diff --git a/lib/hashtable.h b/lib/hashtable.h index 10aee8bb..1c40ea9d 100644 --- a/lib/hashtable.h +++ b/lib/hashtable.h @@ -268,14 +268,14 @@ static inline void P(cleanup_alloc) (void) { } #elif defined(HASH_USE_POOL) /* If the caller has requested to use his mempool, do so */ -#include "lib/pools.h" +#include "lib/mempool.h" static inline void * P(alloc) (unsigned int size) { return mp_alloc_fast(HASH_USE_POOL, size); } static inline void P(init_alloc) (void) { } static inline void P(cleanup_alloc) (void) { } #elif defined(HASH_AUTO_POOL) /* Use our own pools */ -#include "lib/pools.h" +#include "lib/mempool.h" static struct mempool *P(pool); static inline void * P(alloc) (unsigned int size) { return mp_alloc_fast(P(pool), size); } static inline void P(init_alloc) (void) { P(pool) = mp_new(HASH_AUTO_POOL); }