home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / PROCWRKB.ZIP / BENCH1.ZIP / HDR / TREE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-08-07  |  1.0 KB  |  49 lines

  1. /* ===( tree.h )=== */
  2.  
  3. /*
  4.  * Structure definitions, etc. for tree manipulations
  5. */
  6.  
  7. # ifndef _H_TREE
  8.  
  9. # define _H_TREE
  10.  
  11. #define NOUNIQ 0
  12. #define UNIQUE 1
  13.  
  14. struct tree_entry
  15. {
  16.     char t_name[17 + 129];
  17.     int t_idx;
  18.     int t_parent;
  19.     int t_child;
  20.     int t_prev;
  21.     int t_next;
  22.     int t_from;
  23.     int t_to;
  24.     int t_row;
  25.     int t_col;
  26. };
  27.  
  28. typedef struct tree_cb
  29. {
  30.     int listhd;
  31.     int num_members;
  32.     int uniq;
  33. } TREE;
  34.  
  35. PROTO (struct tree_entry *t_add, (TREE *, char *));
  36. PROTO (int t_build, (TREE *));
  37. PROTO (struct tree_entry *t_childadd, (TREE *, char *, char *));
  38. PROTO (int t_close, (TREE *));
  39. PROTO (struct tree_entry *t_idxfind, (TREE *, int));
  40. PROTO (struct tree_entry *t_namefind, (TREE *, char *));
  41. PROTO (TREE *t_open, (char *, int));
  42. PROTO (struct tree_entry *t_rowfind, (TREE *, int));
  43. PROTO (int t_scroll, (int *, TREE *, char *, int, int, ...));
  44. PROTO (struct tree_entry *t_toadd, (TREE *, char *, char *));
  45. PROTO (int t_write, (TREE *, FILE *));
  46. PROTO (TREE *t_read, (FILE *));
  47.  
  48. # endif
  49.