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

Function go_module_cmp

src/pipeline/doc_links_go.c:646–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644/* ── Modules ─────────────────────────────────────────────────────── */
645
646static int go_module_cmp(const void *a, const void *b) {
647 const go_module_t *x = (const go_module_t *)a;
648 const go_module_t *y = (const go_module_t *)b;
649 int c = strcmp(x->path, y->path);
650 return c ? c : strcmp(x->dir->path, y->dir->path);
651}
652
653/* Sort the modules; index the first entry of every module path, and every
654 * (directory, module path) pair. */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected