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

Function pl_named_cmp

internal/cbm/doclink_perl.c:1049–1054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1047}
1048
1049static int pl_named_cmp(const void *a, const void *b) {
1050 const pl_named_t *x = (const pl_named_t *)a;
1051 const pl_named_t *y = (const pl_named_t *)b;
1052 int c = pl_name_cmp(x->name, x->len, y->name, y->len);
1053 return c != 0 ? c : (x->sec > y->sec) - (x->sec < y->sec);
1054}
1055
1056/* The sections that name something, sorted by name and then by position. */
1057static pl_named_t *pl_named_sections(const pl_scan_t *s, int *count) {

Callers

nothing calls this directly

Calls 1

pl_name_cmpFunction · 0.85

Tested by

no test coverage detected