aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/tsearch.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2023-03-02 22:23:08 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2023-03-03 08:32:43 +0300
commit7b22ec1c0b08b780c665a3507513d971732220ac (patch)
tree18b80848ad6406ed6072f4b81a5213938d78a07f /src/microhttpd/tsearch.h
parent2124a70e5431abf11b97ebb89d1f20f23f0845ea (diff)
downloadlibmicrohttpd-7b22ec1c0b08b780c665a3507513d971732220ac.tar.gz
libmicrohttpd-7b22ec1c0b08b780c665a3507513d971732220ac.zip
tsearch.{h,c}: updated to the latest fixed version
Minor modification added to avoid compiler warnings
Diffstat (limited to 'src/microhttpd/tsearch.h')
-rw-r--r--src/microhttpd/tsearch.h31
1 files changed, 11 insertions, 20 deletions
diff --git a/src/microhttpd/tsearch.h b/src/microhttpd/tsearch.h
index 0cfe16a7..c6d873b4 100644
--- a/src/microhttpd/tsearch.h
+++ b/src/microhttpd/tsearch.h
@@ -3,36 +3,27 @@
3 * Public domain. 3 * Public domain.
4 * 4 *
5 * $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $ 5 * $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $
6 * $FreeBSD: release/9.0.0/include/search.h 105250 2002-10-16 14:29:23Z robert $
7 */ 6 */
8 7
9#ifndef _TSEARCH_H_ 8#ifndef _TSEARCH_H_
10#define _TSEARCH_H_ 9#define _TSEARCH_H_
11 10
12#if defined(__cplusplus) 11#ifdef __cplusplus
13extern "C" { 12extern "C"
13{
14#endif /* __cplusplus */ 14#endif /* __cplusplus */
15 15
16void *tdelete (const void *, void **,
17 int (*)(const void *, const void *));
16 18
17void * 19void *tfind (const void *, void * const *,
18 tdelete (const void *__restrict, 20 int (*)(const void *, const void *));
19 void **__restrict,
20 int (*)(const void *, const void *));
21 21
22void *tsearch (const void *, void **,
23 int (*)(const void *, const void *));
22 24
23void * 25#ifdef __cplusplus
24 tfind (const void *, 26}
25 void *const *,
26 int (*)(const void *, const void *));
27
28
29void *
30 tsearch (const void *,
31 void **,
32 int (*)(const void *, const void *));
33
34#if defined(__cplusplus)
35};
36#endif /* __cplusplus */ 27#endif /* __cplusplus */
37 28
38#endif /* !_TSEARCH_H_ */ 29#endif /* !_TSEARCH_H_ */