From 5d8dfe892a2ea89f706ee140c3bdcfd89fe03fda Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 21 Jan 2026 22:40:55 +0100 Subject: Add Redis source code for testing --- examples/redis-unstable/src/pqsort.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/redis-unstable/src/pqsort.h (limited to 'examples/redis-unstable/src/pqsort.h') diff --git a/examples/redis-unstable/src/pqsort.h b/examples/redis-unstable/src/pqsort.h new file mode 100644 index 0000000..5a87e55 --- /dev/null +++ b/examples/redis-unstable/src/pqsort.h @@ -0,0 +1,20 @@ +/* The following is the NetBSD libc qsort implementation modified in order to + * support partial sorting of ranges for Redis. + * + * Copyright (c) 2009-Present, Redis Ltd. + * All rights reserved. + * + * Licensed under your choice of (a) the Redis Source Available License 2.0 + * (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the + * GNU Affero General Public License v3 (AGPLv3). + * + * 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 -- cgit v1.2.3