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

Function cbm_ht_foreach

src/foundation/hash_table.c:126–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void cbm_ht_foreach(const CBMHashTable *ht, cbm_ht_iter_fn fn, void *userdata) {
127 if (!ht || !fn)
128 return;
129 for (cbm_vt_itr itr = cbm_vt_first(&ht->vt); !cbm_vt_is_end(itr); itr = cbm_vt_next(itr)) {
130 fn(itr.data->key, itr.data->val, userdata);
131 }
132}
133
134void cbm_ht_clear(CBMHashTable *ht) {
135 if (!ht)

Callers 15

cbm_sem_corpus_freeFunction · 0.85
release_gbuf_indexesFunction · 0.85
cbm_gbuf_freeFunction · 0.85
cbm_gbuf_delete_by_labelFunction · 0.85
cbm_gbuf_delete_by_fileFunction · 0.85
cbm_gbuf_mergeFunction · 0.85
cbm_watcher_freeFunction · 0.85
cbm_watcher_poll_onceFunction · 0.85
free_funcs_and_tokensFunction · 0.85
cbm_pkgmap_freeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected