Merge pull request #105 from jelmer/compatibility-symlinks
[heimdal.git] / lib / roken / search.hin
blobf8592c481c3fd63eec4e60d1a9cf7d8413e3c84b
1 /*-
2  * Written by J.T. Conklin <jtc@netbsd.org>
3  * Public domain.
4  *
5  * $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $
6  */
8 #ifndef _rk_SEARCH_H_
9 #define _rk_SEARCH_H_ 1
11 #ifndef ROKEN_LIB_FUNCTION
12 #ifdef _WIN32
13 #define ROKEN_LIB_FUNCTION
14 #define ROKEN_LIB_CALL     __cdecl
15 #else
16 #define ROKEN_LIB_FUNCTION
17 #define ROKEN_LIB_CALL
18 #endif
19 #endif
21 #ifndef _WIN32
22 #include <sys/cdefs.h>
23 #endif
24 #include <sys/types.h>
26 typedef enum {
27         preorder,
28         postorder,
29         endorder,
30         leaf
31 } VISIT;
33 ROKEN_CPP_START
35 ROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tdelete(const void *, void **,
36                  int (*)(const void *, const void *));
37 ROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tfind(const void *, void * const *,
38                int (*)(const void *, const void *));
39 ROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tsearch(const void *, void **, int (*)(const void *, const void *));
40 ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL rk_twalk(const void *, void (*)(const void *, VISIT, int));
42 ROKEN_CPP_END
44 #endif /* !_rk_SEARCH_H_ */