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

Function cmp_node_by_label

internal/cbm/sqlite_writer.c:1402–1410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1400// --- Node index comparators (project is same for all, skip it) ---
1401
1402static int cmp_node_by_label(const void *a, const void *b) {
1403 int ia = *(const int *)a;
1404 int ib = *(const int *)b;
1405 int c = strcmp(safe_str(g_sort_nodes[ia].label), safe_str(g_sort_nodes[ib].label));
1406 if (c) {
1407 return c;
1408 }
1409 return cmp_i64(g_sort_nodes[ia].id, g_sort_nodes[ib].id);
1410}
1411
1412static int cmp_node_by_name(const void *a, const void *b) {
1413 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