| 133 | } |
| 134 | |
| 135 | static 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 | |
| 145 | static int always_equal(const void *cmp_data UNUSED, |
| 146 | const struct hashmap_entry *entry1 UNUSED, |
no test coverage detected