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

Function start_key_cmp

src/pipeline/doc_links_cs.c:921–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

919} cs_start_key_t;
920
921static int start_key_cmp(const void *a, const void *b) {
922 const cs_start_key_t *x = (const cs_start_key_t *)a;
923 const cs_start_key_t *y = (const cs_start_key_t *)b;
924 if (x->start != y->start) {
925 return x->start < y->start ? -1 : 1;
926 }
927 if (x->plain != y->plain) {
928 return x->plain ? 1 : -1;
929 }
930 return (x->idx > y->idx) - (x->idx < y->idx);
931}
932
933static int using_region_cmp(const void *a, const void *b) {
934 const cs_using_t *x = (const cs_using_t *)a;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected