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

Function pl_subdecl_cmp

internal/cbm/doclink_perl.c:1563–1570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1561}
1562
1563static int pl_subdecl_cmp(const void *a, const void *b) {
1564 const pl_subdecl_t *x = (const pl_subdecl_t *)a;
1565 const pl_subdecl_t *y = (const pl_subdecl_t *)b;
1566 if (x->line != y->line) {
1567 return x->line < y->line ? -1 : 1;
1568 }
1569 return pl_name_cmp(x->name, x->len, y->name, y->len);
1570}
1571
1572/* One S record per sub definition of the file, with the package the tree
1573 * places it in. */

Callers

nothing calls this directly

Calls 1

pl_name_cmpFunction · 0.85

Tested by

no test coverage detected