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

Function count_calls_named

tests/test_extraction.c:102–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102static int count_calls_named(CBMFileResult *r, const char *callee) {
103 int count = 0;
104 for (int i = 0; i < r->calls.count; i++) {
105 if (r->calls.items[i].callee_name && strcmp(r->calls.items[i].callee_name, callee) == 0) {
106 count++;
107 }
108 }
109 return count;
110}
111
112/* Convenience: extract, assert no error, return result. Caller frees. */
113static CBMFileResult *extract(const char *src, CBMLanguage lang, const char *proj,

Callers 1

test_extraction.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected