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

Function rs_def_cmp

internal/cbm/doclink_rs.c:1298–1303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1296}
1297
1298static int rs_def_cmp(const void *a, const void *b) {
1299 const rs_def_t *x = (const rs_def_t *)a;
1300 const rs_def_t *y = (const rs_def_t *)b;
1301 int c = strcmp(x->label, y->label);
1302 return c ? c : (x->order > y->order) - (x->order < y->order);
1303}
1304
1305/* The first definition of `label` (normalized), or NULL. */
1306static const rs_def_t *rs_def_find(const rs_defs_t *d, const char *label) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected