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

Function named_cmp

src/pipeline/doc_links_cs.c:1899–1910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1897}
1898
1899static int named_cmp(const void *a, const void *b) {
1900 const cs_named_t *x = (const cs_named_t *)a;
1901 const cs_named_t *y = (const cs_named_t *)b;
1902 int c = named_key_cmp(x, y->scope, y->name, y->arity);
1903 if (c) {
1904 return c;
1905 }
1906 if (x->owner != y->owner) {
1907 return x->owner < y->owner ? -1 : 1;
1908 }
1909 return (x->ent > y->ent) - (x->ent < y->ent);
1910}
1911
1912/* The entry of `owner` within [lo, hi) (one scope, name and arity: sorted by
1913 * owner, and an owner has one entity there), or CS_NONE. */

Callers

nothing calls this directly

Calls 1

named_key_cmpFunction · 0.85

Tested by

no test coverage detected