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

Function using_region_cmp

src/pipeline/doc_links_cs.c:933–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

931}
932
933static int using_region_cmp(const void *a, const void *b) {
934 const cs_using_t *x = (const cs_using_t *)a;
935 const cs_using_t *y = (const cs_using_t *)b;
936 if (x->region != y->region) {
937 return x->region < y->region ? -1 : 1;
938 }
939 /* document order within a region: the targets are fields of one buffer,
940 * in the order they were read */
941 return (x->target > y->target) - (x->target < y->target);
942}
943
944/* What a scan of the blob's lines found, to size the file's arrays. */
945typedef struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected