| 151 | } |
| 152 | |
| 153 | void 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 | |
| 164 | int strset_add(struct strset *set, const char *str) |
| 165 | { |
no test coverage detected