2009-05-19 15:34:30 +00:00
|
|
|
/* The following is the NetBSD libc qsort implementation modified in order to
|
|
|
|
* support partial sorting of ranges for Redis.
|
|
|
|
*
|
2010-02-19 10:23:57 +00:00
|
|
|
* Copyright(C) 2009-2010 Salvatore Sanfilippo. All rights reserved.
|
2009-05-19 15:34:30 +00:00
|
|
|
*
|
|
|
|
* See the pqsort.c file for the original copyright notice. */
|
|
|
|
|
|
|
|
#ifndef __PQSORT_H
|
|
|
|
#define __PQSORT_H
|
|
|
|
|
|
|
|
void
|
|
|
|
pqsort(void *a, size_t n, size_t es,
|
2009-05-28 16:28:55 +00:00
|
|
|
int (*cmp) (const void *, const void *), size_t lrange, size_t rrange);
|
2009-05-19 15:34:30 +00:00
|
|
|
|
|
|
|
#endif
|