| 77 | } |
| 78 | |
| 79 | static 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. */ |
| 87 | static void changes_sort(cbm_change_file_t *files, cbm_change_file_t *scratch, size_t count) { |
no outgoing calls
no test coverage detected