3 /* tree.h - declare structures used by tree library
5 * vix 22jan93 [revisited; uses RCS, ANSI, POSIX; has bug fixes]
6 * vix 27jun86 [broken out of tree.c]
8 * Id: tree.h,v 1.3 2005/04/27 04:56:18 sra Exp
12 #ifndef _TREE_H_INCLUDED
13 #define _TREE_H_INCLUDED
17 # if defined(__STDC__) || defined(__GNUC__)
25 * tree_t is our package-specific anonymous pointer.
27 #if defined(__STDC__) || defined(__GNUC__)
34 * Do not taint namespace
36 #define tree_add __tree_add
37 #define tree_delete __tree_delete
38 #define tree_init __tree_init
39 #define tree_mung __tree_mung
40 #define tree_srch __tree_srch
41 #define tree_trav __tree_trav
44 typedef struct tree_s
{
46 struct tree_s
*left
, *right
;
52 void tree_init
__P((tree
**));
53 tree_t tree_srch
__P((tree
**, int (*)(), tree_t
));
54 tree_t tree_add
__P((tree
**, int (*)(), tree_t
, void (*)()));
55 int tree_delete
__P((tree
**, int (*)(), tree_t
, void (*)()));
56 int tree_trav
__P((tree
**, int (*)()));
57 void tree_mung
__P((tree
**, void (*)()));
60 #endif /* _TREE_H_INCLUDED */