]> mj.ucw.cz Git - libucw.git/blobdiff - lib/hash-test.c
Implemented swapping in/out buckets.
[libucw.git] / lib / hash-test.c
index 31af3c0fbde76cc4d48c298fd660f4caaa6acd3f..803a0302e7a98c4f373ee40328a781ef00c09bf8 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <stdio.h>
 #include <string.h>
 
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 /* TEST 1: integers */
 
 
 /* TEST 1: integers */
 
@@ -17,6 +18,7 @@ struct node1 {
 #define HASH_PREFIX(x) test1_##x
 #define HASH_KEY_ATOMIC key
 #define HASH_ATOMIC_TYPE int
 #define HASH_PREFIX(x) test1_##x
 #define HASH_KEY_ATOMIC key
 #define HASH_ATOMIC_TYPE int
+#define HASH_ZERO_FILL
 
 #define HASH_GIVE_INIT_DATA
 static inline void test1_init_data(struct node1 *n)
 
 #define HASH_GIVE_INIT_DATA
 static inline void test1_init_data(struct node1 *n)