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

Function strmap_remove

strmap.c:139–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void strmap_remove(struct strmap *map, const char *str, int free_value)
140{
141 struct strmap_entry entry, *ret;
142 hashmap_entry_init(&entry.ent, strhash(str));
143 entry.key = str;
144 ret = hashmap_remove_entry(&map->map, &entry, ent, NULL);
145 if (!ret)
146 return;
147 if (free_value)
148 free(ret->value);
149 if (!map->pool)
150 free(ret);
151}
152
153void strintmap_incr(struct strintmap *map, const char *str, intptr_t amt)
154{

Callers 7

process_entryFunction · 0.85
cleanup_dir_rename_infoFunction · 0.85
strintmap_removeFunction · 0.85
strset_removeFunction · 0.85
walk_pathFunction · 0.85

Calls 2

hashmap_entry_initFunction · 0.85
strhashFunction · 0.85

Tested by

no test coverage detected