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

Function count_defs_with_label

tests/test_extraction.c:82–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82static int count_defs_with_label(CBMFileResult *r, const char *label) {
83 int count = 0;
84 for (int i = 0; i < r->defs.count; i++) {
85 if (strcmp(r->defs.items[i].label, label) == 0)
86 count++;
87 }
88 return count;
89}
90
91static int count_defs_named(CBMFileResult *r, const char *label, const char *name) {
92 int count = 0;

Callers 1

test_extraction.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected