}
#endif
-#include <stdlib.h>
-
#ifdef HASH_GIVE_ALLOC
/* If the caller has requested to use his own allocation functions, do so */
static inline void P(init_alloc) (TAU) { }
#endif
#ifdef HASH_TABLE_ALLOC
-static inline void * P(table_alloc) (TAUC unsigned int size) { return P(alloc)(size); }
-static inline void P(table_free) (TAUC void *x) { P(free)(x); }
+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)(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); }
#else
T.hash_hard_max = 1 << 28;
#endif
- P(alloc_table)(TT);
P(init_alloc)(TT);
+ P(alloc_table)(TT);
}
#ifdef HASH_WANT_CLEANUP
GLUE_(h_px,node) *h_var = &h_buck->n;
#define HASH_FOR_ALL(h_px, h_var) HASH_FOR_ALL_DYNAMIC(h_px, &GLUE_(h_px,table), h_var)
#define HASH_END_FOR } } while(0)
-#define HASH_BREAK
+#define HASH_BREAK
#define HASH_CONTINUE continue
#endif
#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