diff options
Diffstat (limited to '6.3/tree.h')
-rw-r--r-- | 6.3/tree.h | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,18 +1,20 @@ #ifndef TREE_H -#define MAXLINES 1000 - struct tnode { char *word; - int lc; - int lines[MAXLINES]; + struct linklist *lines; struct tnode *left; struct tnode *right; }; +struct linklist { + int linenum; + struct linklist *ptr; +}; + #define TREE_H #endif -struct tnode *addtree(struct tnode *p, char *w, int line); +struct tnode *addtree(struct tnode *p, char *w, int linenum); void tprint(struct tnode *p); void tfree(struct tnode *p); |