summaryrefslogtreecommitdiffstats
path: root/mdocml.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-09 14:45:44 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-09 14:45:44 +0000
commitfb53bc928f34b334a138fad9fa6a6b9081a9f7c7 (patch)
tree25f71c9f9afde5a617e279092971c17628d795ef /mdocml.c
parent89154444b764aaaab42730cdbca579364a797bfa (diff)
downloadmandoc-fb53bc928f34b334a138fad9fa6a6b9081a9f7c7.tar.gz
*** empty log message ***
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;