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

Function pr_member_is

src/pipeline/doc_links_php.c:710–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708} pr_search_t;
709
710static bool pr_member_is(const pr_search_t *s, const pr_member_t *m) {
711 size_t ml = strlen(m->name);
712 if (s->want == 'm') {
713 return m->kind == 'm' && pr_eq_nocase(m->name, ml, s->name, s->len);
714 }
715 bool kind = s->want == 'p' ? m->kind == 'p' : (m->kind == 'c' || m->kind == 'e');
716 return kind && ml == s->len && memcmp(m->name, s->name, ml) == 0;
717}
718
719static bool pr_seen(pr_search_t *s, int ti) {
720 for (int i = 0; i < s->nvisited; i++) {

Callers 1

pr_searchFunction · 0.85

Calls 1

pr_eq_nocaseFunction · 0.85

Tested by

no test coverage detected