Update NEWS for 1.6.22
[pkg-k5-afs_openafs.git] / src / libafscp / afscp_search.h
blob6b9afdb8a4d7dca8e105c643d659405bdb927338
1 /*-
2 * Written by J.T. Conklin <jtc@netbsd.org>
3 * Public domain.
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 #ifdef __cplusplus
22 #define ROKEN_CPP_START extern "C" {
23 #define ROKEN_CPP_END }
24 #else
25 #define ROKEN_CPP_START
26 #define ROKEN_CPP_END
27 #endif
29 #ifndef _WIN32
30 #include <sys/cdefs.h>
31 #endif
32 #include <sys/types.h>
34 typedef enum {
35 preorder,
36 postorder,
37 endorder,
38 leaf
39 } VISIT;
41 ROKEN_CPP_START
43 ROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tdelete(const void * __restrict, void ** __restrict,
44 int (*)(const void *, const void *));
45 ROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tfind(const void *, void * const *,
46 int (*)(const void *, const void *));
47 ROKEN_LIB_FUNCTION void * ROKEN_LIB_CALL rk_tsearch(const void *, void **, int (*)(const void *, const void *));
48 ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL rk_twalk(const void *, void (*)(const void *, VISIT, int));
50 ROKEN_CPP_END
52 #define tdelete rk_tdelete
53 #define tfind rk_tfind
54 #define tsearch rk_tsearch
55 #define twalk rk_twalk
57 #endif /* !_rk_SEARCH_H_ */