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

Function strintmap_incr

strmap.c:153–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void strintmap_incr(struct strintmap *map, const char *str, intptr_t amt)
154{
155 struct strmap_entry *entry = find_strmap_entry(&map->map, str);
156 if (entry) {
157 intptr_t *whence = (intptr_t*)&entry->value;
158 *whence += amt;
159 }
160 else
161 strintmap_set(map, str, map->default_value + amt);
162}
163
164int strset_add(struct strset *set, const char *str)
165{

Callers 1

increment_countFunction · 0.85

Calls 2

find_strmap_entryFunction · 0.85
strintmap_setFunction · 0.85

Tested by

no test coverage detected