diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 15:21:13 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 15:21:13 +0000 |
commit | ff6ddfd72fee08b3063dffb618af31325e51beea (patch) | |
tree | 13490df552db9fb8c134636ddefc554d2ded3c46 /tree.c | |
parent | faba8b69bbb1a57a9980aa454612ab8cca95e93a (diff) | |
download | mandoc-ff6ddfd72fee08b3063dffb618af31325e51beea.tar.gz |
Support `size' constructs in eqn.7. Generalise mandoc_strontou to this
effect.
Diffstat (limited to 'tree.c')
-rw-r--r-- | tree.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -19,6 +19,7 @@ #endif #include <assert.h> +#include <limits.h> #include <stdio.h> #include <stdlib.h> #include <time.h> @@ -270,17 +271,20 @@ print_box(const struct eqn_box *ep, int indent) switch (ep->type) { case (EQN_ROOT): - printf("eqn-root(%d, %d, %d)\n", + printf("eqn-root(%d, %d, %d, %d)\n", + EQN_DEFSIZE == ep->size ? 0 : ep->size, ep->pos, ep->font, ep->mark); print_box(ep->child, indent + 1); break; case (EQN_SUBEXPR): - printf("eqn-subxpr(%d, %d, %d)\n", + printf("eqn-subxpr(%d, %d, %d, %d)\n", + EQN_DEFSIZE == ep->size ? 0 : ep->size, ep->pos, ep->font, ep->mark); print_box(ep->child, indent + 1); break; case (EQN_TEXT): - printf("eqn-text(%d, %d, %d): [%s]\n", + printf("eqn-text(%d, %d, %d, %d): [%s]\n", + EQN_DEFSIZE == ep->size ? 0 : ep->size, ep->pos, ep->font, ep->mark, ep->text); break; default: |