X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fhashtable.h;h=552e88eaa2b183a7bee566c55478a5f4706b407e;hb=e371dcc1cd2857036374dd9597705faed0427006;hp=f57412b70a103120c519749f8a2d95b876af4b03;hpb=d81211bb8cb5fa357e7a6046e284ba0ff5a6cc28;p=libucw.git diff --git a/lib/hashtable.h b/lib/hashtable.h index f57412b7..552e88ea 100644 --- a/lib/hashtable.h +++ b/lib/hashtable.h @@ -350,7 +350,7 @@ static inline void P(cleanup_alloc) (TAU) { } #ifdef HASH_TABLE_ALLOC static inline void * P(table_alloc) (TAUC unsigned int size) { return P(alloc)(TTC size); } -static inline void P(table_free) (TAUC void *x) { P(free)(x); } +static inline void P(table_free) (TAUC void *x) { P(free)(TTC x); } #else static inline void * P(table_alloc) (TAUC unsigned int size) { return xmalloc(size); } static inline void P(table_free) (TAUC void *x) { xfree(x); } @@ -401,8 +401,8 @@ static void P(init) (TA) #else T.hash_hard_max = 1 << 28; #endif - P(alloc_table)(TT); P(init_alloc)(TT); + P(alloc_table)(TT); } #ifdef HASH_WANT_CLEANUP @@ -644,6 +644,8 @@ do { \ #undef HASH_KEY_DECL #undef HASH_KEY_ENDSTRING #undef HASH_KEY_STRING +#undef HASH_KEY_MEMORY +#undef HASH_KEY_SIZE #undef HASH_NOCASE #undef HASH_NODE #undef HASH_PREFIX