summaryrefslogtreecommitdiffstats
path: root/mdoctree.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 14:01:46 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 14:01:46 +0000
commit10f09076dfef711681072061a37b30e05dc2ba8e (patch)
tree859cc060383b43968e882b1c736a19e2854d1a26 /mdoctree.c
parentc63c2f01f894d2d647e67f40c8eeeded5d5a84a0 (diff)
downloadmandoc-10f09076dfef711681072061a37b30e05dc2ba8e.tar.gz
Bumped minor-number.
All sources converted to new schema.
Diffstat (limited to 'mdoctree.c')
-rw-r--r--mdoctree.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/mdoctree.c b/mdoctree.c
index ff685eb5..18e975da 100644
--- a/mdoctree.c
+++ b/mdoctree.c
@@ -57,7 +57,7 @@ doprint(const struct mdoc_node *n, int indent)
int i, j;
size_t argc, sz;
char **params;
- struct mdoc_arg *argv;
+ struct mdoc_argv *argv;
argv = NULL;
argc = sz = 0;
@@ -92,7 +92,7 @@ doprint(const struct mdoc_node *n, int indent)
switch (n->type) {
case (MDOC_TEXT):
- p = n->data.text.string;
+ p = n->string;
break;
case (MDOC_BODY):
p = mdoc_macronames[n->tok];
@@ -105,13 +105,17 @@ doprint(const struct mdoc_node *n, int indent)
break;
case (MDOC_ELEM):
p = mdoc_macronames[n->tok];
- argv = n->data.elem.argv;
- argc = n->data.elem.argc;
+ if (n->args) {
+ argv = n->args->argv;
+ argc = n->args->argc;
+ }
break;
case (MDOC_BLOCK):
p = mdoc_macronames[n->tok];
- argv = n->data.block.argv;
- argc = n->data.block.argc;
+ if (n->args) {
+ argv = n->args->argv;
+ argc = n->args->argc;
+ }
break;
case (MDOC_ROOT):
p = "root";