|
Last change
on this file since 3 was 1, checked in by Paul Smedley, 10 years ago |
|
Initial commit of Heimdal 1.5.3
|
|
File size:
1007 bytes
|
| Line | |
|---|
| 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 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef _rk_SEARCH_H_
|
|---|
| 9 | #define _rk_SEARCH_H_ 1
|
|---|
| 10 |
|
|---|
| 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
|
|---|
| 20 |
|
|---|
| 21 | #ifndef _WIN32
|
|---|
| 22 | #include <sys/cdefs.h>
|
|---|
| 23 | #endif
|
|---|
| 24 | #include <sys/types.h>
|
|---|
| 25 |
|
|---|
| 26 | typedef enum {
|
|---|
| 27 | preorder,
|
|---|
| 28 | postorder,
|
|---|
| 29 | endorder,
|
|---|
| 30 | leaf
|
|---|
| 31 | } VISIT;
|
|---|
| 32 |
|
|---|
| 33 | ROKEN_CPP_START
|
|---|
| 34 |
|
|---|
| 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));
|
|---|
| 41 |
|
|---|
| 42 | ROKEN_CPP_END
|
|---|
| 43 |
|
|---|
| 44 | #endif /* !_rk_SEARCH_H_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.