summaryrefslogtreecommitdiffstats
path: root/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'tree.c')
-rw-r--r--tree.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/tree.c b/tree.c
index b4f14523..e83a5bce 100644
--- a/tree.c
+++ b/tree.c
@@ -272,14 +272,19 @@ print_box(const struct eqn_box *ep, int indent)
case (EQN_ROOT):
puts("eqn-root");
print_box(ep->child, indent + 1);
- return;
+ break;
+ case (EQN_SUBEXPR):
+ puts("eqn-subxpr");
+ print_box(ep->child, indent + 1);
+ break;
case (EQN_TEXT):
printf("eqn-text: [%s]\n", ep->text);
- print_box(ep->next, indent);
- return;
+ break;
default:
break;
}
+
+ print_box(ep->next, indent);
}
static void