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