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

Source from the content-addressed store, hash-verified

1410}
1411
1412static int cmp_node_by_name(const void *a, const void *b) {
1413 int ia = *(const int *)a;
1414 int ib = *(const int *)b;
1415 int c = strcmp(safe_str(g_sort_nodes[ia].name), safe_str(g_sort_nodes[ib].name));
1416 if (c) {
1417 return c;
1418 }
1419 return cmp_i64(g_sort_nodes[ia].id, g_sort_nodes[ib].id);
1420}
1421
1422static int cmp_node_by_file(const void *a, const void *b) {
1423 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