]> git.saurik.com Git - redis.git/blobdiff - src/pqsort.h
redis.c split into many different C files.
[redis.git] / src / pqsort.h
diff --git a/src/pqsort.h b/src/pqsort.h
new file mode 100644 (file)
index 0000000..5054d52
--- /dev/null
@@ -0,0 +1,15 @@
+/* The following is the NetBSD libc qsort implementation modified in order to
+ * support partial sorting of ranges for Redis.
+ *
+ * Copyright(C) 2009-2010 Salvatore Sanfilippo. All rights reserved.
+ *
+ * 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,
+    int (*cmp) (const void *, const void *), size_t lrange, size_t rrange);
+
+#endif