diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-06-19 14:44:54 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-06-19 14:44:54 -0700 |
commit | 91c673b37782d4cd90e5cf9a8e4491723e6c04bf (patch) | |
tree | 0c334edf4729283b08cd95ae577f890b089f26fc /sys/cmd/rc/tree.c | |
parent | 765ff8b3423599396d0aa33885e2495ad86dbb19 (diff) |
fix: many small bug fixes with parser and lexer
Diffstat (limited to 'sys/cmd/rc/tree.c')
-rw-r--r-- | sys/cmd/rc/tree.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/cmd/rc/tree.c b/sys/cmd/rc/tree.c index 8dca67f..14049e5 100644 --- a/sys/cmd/rc/tree.c +++ b/sys/cmd/rc/tree.c @@ -121,10 +121,10 @@ Tree* simplehang(Tree *t) { Tree *u; - t = tree1(Asimple, t); - for(u = t->child[0];u->type==Aargs;u=u->child[0]) { - if (u->child[1]->type==Adup - || u->child[1]->type==Aredir){ + t = tree1(Tsimple, t); + for(u = t->child[0];u->type==Targs;u=u->child[0]) { + if (u->child[1]->type==Tdup + || u->child[1]->type==Tredir){ u->child[1]->child[1] = t; t = u->child[1]; u->child[1] = nil; @@ -137,7 +137,7 @@ Tree* wordnode(char *w) { Tree *t = newtree(); - t->type = Aword; + t->type = Tword; t->str = strdup(w); return t; |