MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_ht_delete

Function cbm_ht_delete

src/foundation/hash_table.c:187–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void *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
199uint32_t cbm_ht_count(const CBMHashTable *ht) {
200 if (!ht)

Callers 11

gb_drop_variant_spansFunction · 0.85
cbm_gbuf_delete_by_labelFunction · 0.85
cbm_gbuf_delete_by_fileFunction · 0.85
gbuf_delete_untouchedFunction · 0.85
cbm_watcher_watchFunction · 0.85
cbm_watcher_unwatchFunction · 0.85
prune_missing_projectFunction · 0.85
undo_scopeFunction · 0.85
sh_rewindFunction · 0.85
sh_make_resolveFunction · 0.85
test_hash_table.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected