| 185 | } |
| 186 | |
| 187 | void *cbm_ht_delete(CBMHashTable *ht, const char *key) { |
| 188 | if (!ht || !key) |
| 189 | return NULL; |
| 190 | cbm_vt_itr itr = cbm_vt_get(&ht->vt, key); |
| 191 | if (cbm_vt_is_end(itr)) |
| 192 | return NULL; |
| 193 | void *prev = itr.data->val; |
| 194 | HT_WROTE(ht); |
| 195 | (void)cbm_vt_erase(&ht->vt, key); |
| 196 | return prev; |
| 197 | } |
| 198 | |
| 199 | uint32_t cbm_ht_count(const CBMHashTable *ht) { |
| 200 | if (!ht) |
no outgoing calls
no test coverage detected