#include "../git-compat-util.h" /* * A merge sort implementation, simplified from the qsort implementation * by Mike Haertel, which is a part of the GNU C Library. * Added context pointer, safety checks and return value. */ static void msort_with_tmp(void *b, size_t n, size_t s, int (*cmp)(const void *, const void *, void *), char *t, void *ctx) { … } int git_qsort_s(void *b, size_t n, size_t s, int (*cmp)(const void *, const void *, void *), void *ctx) { … }