home *** CD-ROM | disk | FTP | other *** search
- /* ===( tree.h )=== */
-
- /*
- * Structure definitions, etc. for tree manipulations
- */
-
- # ifndef _H_TREE
-
- # define _H_TREE
-
- #define NOUNIQ 0
- #define UNIQUE 1
-
- struct tree_entry
- {
- char t_name[17 + 129];
- int t_idx;
- int t_parent;
- int t_child;
- int t_prev;
- int t_next;
- int t_from;
- int t_to;
- int t_row;
- int t_col;
- };
-
- typedef struct tree_cb
- {
- int listhd;
- int num_members;
- int uniq;
- } TREE;
-
- PROTO (struct tree_entry *t_add, (TREE *, char *));
- PROTO (int t_build, (TREE *));
- PROTO (struct tree_entry *t_childadd, (TREE *, char *, char *));
- PROTO (int t_close, (TREE *));
- PROTO (struct tree_entry *t_idxfind, (TREE *, int));
- PROTO (struct tree_entry *t_namefind, (TREE *, char *));
- PROTO (TREE *t_open, (char *, int));
- PROTO (struct tree_entry *t_rowfind, (TREE *, int));
- PROTO (int t_scroll, (int *, TREE *, char *, int, int, ...));
- PROTO (struct tree_entry *t_toadd, (TREE *, char *, char *));
- PROTO (int t_write, (TREE *, FILE *));
- PROTO (TREE *t_read, (FILE *));
-
- # endif
-