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

Function cbm_ht_foreach

src/foundation/hash_table.c:205–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void cbm_ht_foreach(const CBMHashTable *ht, cbm_ht_iter_fn fn, void *userdata) {
206 if (!ht || !fn)
207 return;
208 for (cbm_vt_itr itr = cbm_vt_first(&ht->vt); !cbm_vt_is_end(itr); itr = cbm_vt_next(itr)) {
209 fn(itr.data->key, itr.data->val, userdata);
210 }
211}
212
213void cbm_ht_clear(CBMHashTable *ht) {
214 if (!ht)

Callers 15

cbm_sem_corpus_freeFunction · 0.85
cov_dir_ids_freeFunction · 0.85
tracked_freeFunction · 0.85
rb_distinct_freeFunction · 0.85
release_gbuf_indexesFunction · 0.85
cbm_gbuf_freeFunction · 0.85
cbm_gbuf_settle_variantsFunction · 0.85
cbm_gbuf_delete_by_labelFunction · 0.85
cbm_gbuf_delete_by_fileFunction · 0.85
gbuf_delete_untouchedFunction · 0.85

Calls

no outgoing calls

Tested by 1

cbm_ti_source_freeFunction · 0.68