24 #define ENABLE_CURLX_PRINTF 67 fprintf(stderr,
"Warning: hashes are not computed as expected on this " 68 "architecture; test coverage will be less comprehensive\n");
static void mydtor(void *p)
int Curl_hash_init(struct curl_hash *h, int slots, hash_function hfunc, comp_function comparator, curl_hash_dtor dtor)
int Curl_hash_delete(struct curl_hash *h, void *key, size_t key_len)
void Curl_hash_destroy(struct curl_hash *h)
void Curl_hash_clean(struct curl_hash *h)
static void unit_stop(void)
#define fail_unless(expr, msg)
size_t Curl_str_key_compare(void *k1, size_t key1_len, void *k2, size_t key2_len)
size_t Curl_hash_str(void *key, size_t key_length, size_t slots_num)
void * Curl_hash_add(struct curl_hash *h, void *key, size_t key_len, void *p)
static CURLcode unit_setup(void)
UNITTEST_START char key1[]
static struct curl_hash hash_static
void * Curl_hash_pick(struct curl_hash *h, void *key, size_t key_len)