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:1432–1441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1430}
1431
1432static int cmp_node_by_qn(const void *a, const void *b) {
1433 int ia = *(const int *)a;
1434 int ib = *(const int *)b;
1435 int c = strcmp(safe_str(g_sort_nodes[ia].qualified_name),
1436 safe_str(g_sort_nodes[ib].qualified_name));
1437 if (c) {
1438 return c;
1439 }
1440 return cmp_i64(g_sort_nodes[ia].id, g_sort_nodes[ib].id);
1441}
1442
1443// --- Edge index comparators ---
1444

Callers

nothing calls this directly

Calls 2

cmp_i64Function · 0.85
safe_strFunction · 0.70

Tested by

no test coverage detected