aboutsummaryrefslogtreecommitdiff
path: root/6.3/tree.h
diff options
context:
space:
mode:
Diffstat (limited to '6.3/tree.h')
-rw-r--r--6.3/tree.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/6.3/tree.h b/6.3/tree.h
index c6ebc53..0b90913 100644
--- a/6.3/tree.h
+++ b/6.3/tree.h
@@ -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);