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

Function resolve_identifier

internal/cbm/extract_channels.c:172–182  ·  view source on GitHub ↗

Resolve an identifier against the constant table. Returns NULL on miss. */

Source from the content-addressed store, hash-verified

170
171/* Resolve an identifier against the constant table. Returns NULL on miss. */
172static const char *resolve_identifier(const chan_const_table_t *tbl, const char *name) {
173 if (!name) {
174 return NULL;
175 }
176 for (int i = 0; i < tbl->count; i++) {
177 if (tbl->items[i].name && strcmp(tbl->items[i].name, name) == 0) {
178 return tbl->items[i].value;
179 }
180 }
181 return NULL;
182}
183
184/* ── Enclosing function detection ───────────────────────────────── */
185

Callers 1

extract_channel_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected