* Returns the value for str in the map. If str isn't found in the map, * the map's default_value is returned. */
| 183 | * the map's default_value is returned. |
| 184 | */ |
| 185 | static inline int strintmap_get(struct strintmap *map, const char *str) |
| 186 | { |
| 187 | struct strmap_entry *result = strmap_get_entry(&map->map, str); |
| 188 | if (!result) |
| 189 | return map->default_value; |
| 190 | return (intptr_t)result->value; |
| 191 | } |
| 192 | |
| 193 | static inline void strintmap_set(struct strintmap *map, const char *str, |
| 194 | intptr_t v) |
no test coverage detected