Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 3 of 3) sorted by relevance

/curl/lib/
H A Dhash.c67 size_t slots, in Curl_hash_init() argument
73 DEBUGASSERT(slots); in Curl_hash_init()
83 h->slots = slots; in Curl_hash_init()
116 DEBUGASSERT(h->slots); in Curl_hash_add2()
123 for(i = 0; i < h->slots; ++i) in Curl_hash_add2()
170 DEBUGASSERT(h->slots); in Curl_hash_delete()
200 DEBUGASSERT(h->slots); in Curl_hash_pick()
226 for(i = 0; i < h->slots; ++i) { in Curl_hash_destroy()
232 h->slots = 0; in Curl_hash_destroy()
262 for(i = 0; i < h->slots; ++i) { in Curl_hash_clean_with_criterium()
[all …]
H A Dhash.h57 size_t slots; member
87 size_t slots,
115 void Curl_hash_offt_init(struct Curl_hash *h, size_t slots,
/curl/tests/unit/
H A Dunit1603.c33 static const size_t slots = 3; variable
53 Curl_hash_init(&hash_static, slots, Curl_hash_str, in unit_setup()
75 if(Curl_hash_str(key1, strlen(key1), slots) != 1 ||
76 Curl_hash_str(key2, strlen(key2), slots) != 0 ||
77 Curl_hash_str(key3, strlen(key3), slots) != 2 ||
78 Curl_hash_str(key4, strlen(key4), slots) != 1)

Completed in 7 milliseconds