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

Function full_cmp

src/pipeline/doc_links_cs.c:1795–1805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1793}
1794
1795static int full_cmp(const void *a, const void *b) {
1796 const cs_full_t *x = (const cs_full_t *)a;
1797 const cs_full_t *y = (const cs_full_t *)b;
1798 if (x->unit != y->unit) {
1799 return x->unit < y->unit ? -1 : 1;
1800 }
1801 if (x->file != y->file) {
1802 return x->file < y->file ? -1 : 1;
1803 }
1804 return (x->type > y->type) - (x->type < y->type);
1805}
1806
1807/* The complete declarations of every entity that has them in two or more
1808 * projects (or shared trees): the flavours of one type, alternatives of each

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected