diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2014-07-04 10:45:37 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2014-07-04 10:45:37 -0500 |
commit | dbe88638530aacb4cffccfb0b58fa934fc78dd6b (patch) | |
tree | 1379ec704e9f2b6ce3e2c4b92da367103e662b35 /sorters.h | |
parent | 4178350f795d568cdba861b6200bb9a33944e1c9 (diff) |
Add the C++ reference wikisort implementation
Diffstat (limited to 'sorters.h')
-rw-r--r-- | sorters.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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[]; |