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

Function pr_seen

src/pipeline/doc_links_php.c:719–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

717}
718
719static bool pr_seen(pr_search_t *s, int ti) {
720 for (int i = 0; i < s->nvisited; i++) {
721 if (s->visited[i] == ti) {
722 return true;
723 }
724 }
725 if (s->nvisited == PR_VISIT_MAX) {
726 s->open = true; /* too wide to follow: not every supertype was read */
727 return true;
728 }
729 s->visited[s->nvisited++] = ti;
730 return false;
731}
732
733static bool pr_search(pr_search_t *s, int ti, int depth) {
734 if (depth > PR_MAX_DEPTH) {

Callers 1

pr_searchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected