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

Function cmp_node_by_name

internal/cbm/sqlite_writer.c:1467–1475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1465}
1466
1467static int cmp_node_by_name(const void *a, const void *b) {
1468 int ia = *(const int *)a;
1469 int ib = *(const int *)b;
1470 int c = strcmp(safe_str(g_sort_nodes[ia].name), safe_str(g_sort_nodes[ib].name));
1471 if (c) {
1472 return c;
1473 }
1474 return cmp_i64(g_sort_nodes[ia].id, g_sort_nodes[ib].id);
1475}
1476
1477static int cmp_node_by_file(const void *a, const void *b) {
1478 int ia = *(const int *)a;

Callers

nothing calls this directly

Calls 2

cmp_i64Function · 0.85
safe_strFunction · 0.70

Tested by

no test coverage detected