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

Function twin_key_cmp

internal/cbm/doclink.c:429–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427} doclink_twin_key_t;
428
429static int twin_key_cmp(const void *a, const void *b) {
430 const doclink_twin_key_t *x = (const doclink_twin_key_t *)a;
431 const doclink_twin_key_t *y = (const doclink_twin_key_t *)b;
432 if (x->line != y->line) {
433 return x->line < y->line ? -1 : 1;
434 }
435 return strcmp(x->name, y->name);
436}
437
438/* The (line, name) keys of the definitions a twin label duplicates, sorted;
439 * NULL when there are none. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected