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

Function rs_defref_cmp

internal/cbm/doclink_rs.c:2306–2311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2304} rs_defref_t;
2305
2306static int rs_defref_cmp(const void *a, const void *b) {
2307 const rs_defref_t *x = (const rs_defref_t *)a;
2308 const rs_defref_t *y = (const rs_defref_t *)b;
2309 int c = rs_defqn_cmp_ctx(x->def, y->def);
2310 return c ? c : (x->idx > y->idx) - (x->idx < y->idx);
2311}
2312
2313/* Index the file's definitions: by (line, name) for the items the scan meets,
2314 * and which definition of every qualified name owns the node. */

Callers

nothing calls this directly

Calls 1

rs_defqn_cmp_ctxFunction · 0.85

Tested by

no test coverage detected