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

Function inv_count_label

tests/repro/repro_invariant_lib.h:102–108  ·  view source on GitHub ↗

Count defs with a given label. */

Source from the content-addressed store, hash-verified

100
101/* Count defs with a given label. */
102static inline int inv_count_label(CBMFileResult *r, const char *label) {
103 int c = 0;
104 for (int i = 0; i < r->defs.count; i++)
105 if (r->defs.items[i].label && strcmp(r->defs.items[i].label, label) == 0)
106 c++;
107 return c;
108}
109
110/* True if a call to `callee` (substring match on callee_name) was extracted. */
111static inline int inv_has_call(CBMFileResult *r, const char *callee) {

Callers 15

single_file_batteryFunction · 0.85
single_file_batteryFunction · 0.85
config_struct_batteryFunction · 0.85
config_callable_batteryFunction · 0.85
single_file_batteryFunction · 0.85
markup_struct_batteryFunction · 0.85
markup_callable_batteryFunction · 0.85
single_file_batteryFunction · 0.85
sh_struct_batteryFunction · 0.85
sh_callable_batteryFunction · 0.85
misc_single_file_batteryFunction · 0.85
single_file_batteryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected