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

Function alias_id_cmp

src/pipeline/doc_links_cs.c:2596–2602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2594/* ── Import candidate indexes ───────────────────────────────────── */
2595
2596static int alias_id_cmp(const void *a, const void *b) {
2597 const cs_alias_id_t *x = (const cs_alias_id_t *)a;
2598 const cs_alias_id_t *y = (const cs_alias_id_t *)b;
2599 cs_index_work(SKIP_ONE);
2600 int order = strcmp(x->name, y->name);
2601 return order ? order : (x->id > y->id) - (x->id < y->id);
2602}
2603
2604static int using_id_cmp(const void *a, const void *b) {
2605 const cs_using_id_t *x = (const cs_using_id_t *)a;

Callers

nothing calls this directly

Calls 1

cs_index_workFunction · 0.85

Tested by

no test coverage detected