Lines Matching refs:Entry
26 typedef struct Entry Entry; typedef
27 struct Entry { struct
31 Entry* next; argument
35 Entry** buckets;
61 map->buckets = calloc(map->bucketCount, sizeof(Entry*)); in hashmapCreate()
106 Entry** newBuckets = calloc(newBucketCount, sizeof(Entry*)); in expandIfNecessary()
115 Entry* entry = map->buckets[i]; in expandIfNecessary()
117 Entry* next = entry->next; in expandIfNecessary()
143 Entry* entry = map->buckets[i]; in hashmapFree()
145 Entry* next = entry->next; in hashmapFree()
166 static Entry* createEntry(void* key, int hash, void* value) { in createEntry()
167 Entry* entry = malloc(sizeof(Entry)); in createEntry()
193 Entry** p = &(map->buckets[index]); in hashmapPut()
195 Entry* current = *p; in hashmapPut()
225 Entry* entry = map->buckets[index]; in hashmapGet()
240 Entry* entry = map->buckets[index]; in hashmapContainsKey()
256 Entry** p = &(map->buckets[index]); in hashmapMemoize()
258 Entry* current = *p; in hashmapMemoize()
289 Entry** p = &(map->buckets[index]); in hashmapRemove()
290 Entry* current; in hashmapRemove()
311 Entry* entry = map->buckets[i]; in hashmapForEach()
313 Entry *next = entry->next; in hashmapForEach()
331 Entry* entry = map->buckets[i]; in hashmapCountCollisions()