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

Function bind_cmp

src/pipeline/doc_links_cs.c:2283–2293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2281}
2282
2283static int bind_cmp(const void *a, const void *b) {
2284 const cs_bind_t *x = (const cs_bind_t *)a;
2285 const cs_bind_t *y = (const cs_bind_t *)b;
2286 if (x->cls != y->cls) {
2287 return x->cls < y->cls ? -1 : 1;
2288 }
2289 if (x->file != y->file) {
2290 return x->file < y->file ? -1 : 1;
2291 }
2292 return (x->type > y->type) - (x->type < y->type);
2293}
2294
2295/* Every entity's declarations by (class, path). */
2296static bool build_binds(cs_index_t *ix) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected