From dbe88638530aacb4cffccfb0b58fa934fc78dd6b Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Fri, 4 Jul 2014 10:45:37 -0500 Subject: Add the C++ reference wikisort implementation --- sorters.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sorters.h') diff --git a/sorters.h b/sorters.h index d451813..669f5c4 100644 --- a/sorters.h +++ b/sorters.h @@ -3,15 +3,16 @@ void assert_sorted(int *buffer, size_t size); typedef int (*cmpfun)(const void *, const void *); -typedef void (*sorter)(void *, size_t, size_t, cmpfun); +typedef void (*sorterfn)(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); void freebsd_qsort(void *, size_t, size_t, cmpfun); void wikisort(void *, size_t, size_t, cmpfun); +void wikisort_ref(void *, size_t, size_t, cmpfun); extern const struct sorter { const char *name; - sorter func; + sorterfn func; } sorters[]; -- cgit v1.2.3