From fb53bc928f34b334a138fad9fa6a6b9081a9f7c7 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 9 Jan 2009 14:45:44 +0000 Subject: *** empty log message *** --- mdocml.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mdocml.c') 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; -- cgit