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

Function pl_docdef_cmp

internal/cbm/doclink_perl.c:1145–1150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1143} pl_docdef_t;
1144
1145static int pl_docdef_cmp(const void *a, const void *b) {
1146 const pl_docdef_t *x = (const pl_docdef_t *)a;
1147 const pl_docdef_t *y = (const pl_docdef_t *)b;
1148 int c = strcmp(x->qn, y->qn);
1149 return c != 0 ? c : (x->idx > y->idx) - (x->idx < y->idx);
1150}
1151
1152/* twin[i]: definition i repeats the qualified name AND the doc of an earlier
1153 * one (the same sub name in two packages of a file is one node with one doc):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected