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

Function count_defs_named

tests/test_extraction.c:91–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91static int count_defs_named(CBMFileResult *r, const char *label, const char *name) {
92 int count = 0;
93 for (int i = 0; i < r->defs.count; i++) {
94 if (strcmp(r->defs.items[i].label, label) == 0 &&
95 strcmp(r->defs.items[i].name, name) == 0) {
96 count++;
97 }
98 }
99 return count;
100}
101
102static int count_calls_named(CBMFileResult *r, const char *callee) {
103 int count = 0;

Callers 2

test_extraction.cFile · 0.70
c1_enumerator_atFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected