summaryrefslogtreecommitdiff
path: root/sorters.h
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2014-06-21 11:24:23 -0500
committerBobby Bingham <koorogi@koorogi.info>2014-06-21 11:24:23 -0500
commitf305d9d704dd76385941414287f5124d8c35d8b5 (patch)
tree159d4d7abb573572e5c30da787c8c7b2033ec868 /sorters.h
parent5fa0d5023f0e2935f99b04422f3a338d77264107 (diff)
Add glibc's sorts
Also rename musl's sort function for more consistency.
Diffstat (limited to 'sorters.h')
-rw-r--r--sorters.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sorters.h b/sorters.h
index 1a2397a..c6850d2 100644
--- a/sorters.h
+++ b/sorters.h
@@ -3,7 +3,9 @@
typedef int (*cmpfun)(const void *, const void *);
typedef void (*sorter)(void *, size_t, size_t, cmpfun);
-void qsort_musl(void *, size_t, size_t, cmpfun);
+void musl_qsort(void *, size_t, size_t, cmpfun);
+void glibc_quicksort(void *, size_t, size_t, cmpfun);
+void glibc_mergesort(void *, size_t, size_t, cmpfun);
extern const struct sorter {
const char *name;