MCPcopy Index your code
hub / github.com/git/git / find_entry_ptr

Function find_entry_ptr

hashmap.c:135–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135static inline struct hashmap_entry **find_entry_ptr(const struct hashmap *map,
136 const struct hashmap_entry *key, const void *keydata)
137{
138 /* map->table MUST NOT be NULL when this function is called */
139 struct hashmap_entry **e = &map->table[bucket(map, key)];
140 while (*e && !entry_equals(map, *e, key, keydata))
141 e = &(*e)->next;
142 return e;
143}
144
145static int always_equal(const void *cmp_data UNUSED,
146 const struct hashmap_entry *entry1 UNUSED,

Callers 2

hashmap_getFunction · 0.85
hashmap_removeFunction · 0.85

Calls 2

bucketFunction · 0.85
entry_equalsFunction · 0.85

Tested by

no test coverage detected