-/* $Id: tree.c,v 1.39 2011/07/21 12:30:44 kristaps Exp $ */
+/* $Id: tree.c,v 1.42 2011/07/21 14:13:00 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
switch (ep->type) {
case (EQN_ROOT):
- puts("eqn-root");
+ printf("eqn-root(%d, %d, %d)\n",
+ ep->pos, ep->font, ep->mark);
print_box(ep->child, indent + 1);
break;
case (EQN_SUBEXPR):
- puts("eqn-subxpr");
+ printf("eqn-subxpr(%d, %d, %d)\n",
+ ep->pos, ep->font, ep->mark);
print_box(ep->child, indent + 1);
break;
case (EQN_TEXT):
- printf("eqn-text: [%s]\n", ep->text);
+ printf("eqn-text(%d, %d, %d): [%s]\n",
+ ep->pos, ep->font, ep->mark, ep->text);
break;
default:
break;