summaryrefslogtreecommitdiffstats
path: root/mdocml.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdocml.c')
-rw-r--r--mdocml.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mdocml.c b/mdocml.c
index fbdddb68..f3b0a524 100644
--- a/mdocml.c
+++ b/mdocml.c
@@ -222,6 +222,10 @@ print_node(const struct mdoc_node *n, int indent)
argv = n->data.block.argv;
argc = n->data.block.argc;
break;
+ case (MDOC_ROOT):
+ p = "root";
+ t = "root";
+ break;
default:
abort();
/* NOTREACHED */
@@ -262,6 +266,8 @@ parse_leave(struct md_parse *p, int code)
if ((n = mdoc_result(p->mdoc)))
print_node(n, 0);
+ mdoc_free(p->mdoc);
+
return(code);
}
@@ -500,6 +506,9 @@ msg_warn(void *arg, int line, int col, enum mdoc_warn type)
case (WARN_SEC_OO):
lit = "section is out of conventional order";
break;
+ case (WARN_SEC_REP):
+ lit = "section repeated";
+ break;
case (WARN_ARGS_GE1):
lit = "macro suggests one or more arguments";
break;