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

Function changes_path_compare

src/mcp/test_impact_changes.c:79–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static int changes_path_compare(const unsigned char *a, size_t a_length, const unsigned char *b,
80 size_t b_length) {
81 size_t common = a_length < b_length ? a_length : b_length;
82 int order = memcmp(a, b, common); /* specified unsigned-byte comparison */
83 return order ? order : (a_length > b_length) - (a_length < b_length);
84}
85
86/* Stable merge order, including equal keys before duplicate rejection. */
87static void changes_sort(cbm_change_file_t *files, cbm_change_file_t *scratch, size_t count) {

Callers 3

changes_sortFunction · 0.85
changes_findFunction · 0.85
cbm_changes_parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected