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

Function cmp_node_by_qn

internal/cbm/sqlite_writer.c:1487–1496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1485}
1486
1487static int cmp_node_by_qn(const void *a, const void *b) {
1488 int ia = *(const int *)a;
1489 int ib = *(const int *)b;
1490 int c = strcmp(safe_str(g_sort_nodes[ia].qualified_name),
1491 safe_str(g_sort_nodes[ib].qualified_name));
1492 if (c) {
1493 return c;
1494 }
1495 return cmp_i64(g_sort_nodes[ia].id, g_sort_nodes[ib].id);
1496}
1497
1498// --- Edge index comparators ---
1499

Callers

nothing calls this directly

Calls 2

cmp_i64Function · 0.85
safe_strFunction · 0.70

Tested by

no test coverage detected