diff options
Diffstat (limited to '6.2/tree.h')
-rw-r--r-- | 6.2/tree.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/6.2/tree.h b/6.2/tree.h new file mode 100644 index 0000000..e976495 --- /dev/null +++ b/6.2/tree.h @@ -0,0 +1,20 @@ +#ifndef TREE_H + +struct tnode { + char *word; + int count; + int match; + struct tnode *left; + struct tnode *right; +}; + +enum { NO, YES }; + +#define TREE_H +#endif + +struct tnode *naddtree(struct tnode *p, char *w, int bar, int prevmatch); +void ntreeprint(struct tnode *p); +void treefree(struct tnode *p); +struct tnode *talloc(void); +char *sneed_strdup(char *s); |