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

Function cbm_ht_delete

src/foundation/hash_table.c:109–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109void *cbm_ht_delete(CBMHashTable *ht, const char *key) {
110 if (!ht || !key)
111 return NULL;
112 cbm_vt_itr itr = cbm_vt_get(&ht->vt, key);
113 if (cbm_vt_is_end(itr))
114 return NULL;
115 void *prev = itr.data->val;
116 (void)cbm_vt_erase(&ht->vt, key);
117 return prev;
118}
119
120uint32_t cbm_ht_count(const CBMHashTable *ht) {
121 if (!ht)

Callers 8

unindex_edgeFunction · 0.85
cbm_gbuf_delete_by_labelFunction · 0.85
cbm_gbuf_delete_by_fileFunction · 0.85
cbm_watcher_watchFunction · 0.85
cbm_watcher_unwatchFunction · 0.85
prune_missing_projectFunction · 0.85
test_hash_table.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected