MCPcopy Create free account
hub / github.com/git/git / hashmap_iter_next

Function hashmap_iter_next

hashmap.c:295–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295struct hashmap_entry *hashmap_iter_next(struct hashmap_iter *iter)
296{
297 struct hashmap_entry *current = iter->next;
298 for (;;) {
299 if (current) {
300 iter->next = current->next;
301 return current;
302 }
303
304 if (iter->tablepos >= iter->map->tablesize)
305 return NULL;
306
307 current = iter->map->table[iter->tablepos++];
308 }
309}
310
311struct pool_entry {
312 struct hashmap_entry ent;

Callers 5

hashmap_iter_firstFunction · 0.85
oidmap_iter_nextFunction · 0.85
free_individual_entriesFunction · 0.85
oidmap_clear_with_freeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected