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

Function has_def

tests/test_parse_coverage.c:47–54  ·  view source on GitHub ↗

Return 1 if any extracted definition has the given short name. */

Source from the content-addressed store, hash-verified

45
46/* Return 1 if any extracted definition has the given short name. */
47static int has_def(CBMFileResult *r, const char *name) {
48 for (int i = 0; i < r->defs.count; i++) {
49 if (r->defs.items[i].name && strcmp(r->defs.items[i].name, name) == 0) {
50 return 1;
51 }
52 }
53 return 0;
54}
55
56/* ── Fixtures ─────────────────────────────────────────────────────────────── */
57

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected