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

Function tparam_cmp

src/pipeline/doc_links_cs.c:874–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872/* ── Scope blob parsing ──────────────────────────────────────────── */
873
874static int tparam_cmp(const void *a, const void *b) {
875 const cs_tparam_t *x = (const cs_tparam_t *)a;
876 const cs_tparam_t *y = (const cs_tparam_t *)b;
877 if (x->owner != y->owner) {
878 return x->owner < y->owner ? -1 : 1;
879 }
880 int c = strcmp(x->name, y->name);
881 return c ? c : (x->pos > y->pos) - (x->pos < y->pos);
882}
883
884/* Position of the type parameter `name` of `owner` in `f`, or CS_NONE. */
885static int tparam_find(const cs_file_t *f, int owner, const char *name, size_t len) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected