diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-09 14:45:44 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-01-09 14:45:44 +0000 |
commit | fb53bc928f34b334a138fad9fa6a6b9081a9f7c7 (patch) | |
tree | 25f71c9f9afde5a617e279092971c17628d795ef /mdocml.c | |
parent | 89154444b764aaaab42730cdbca579364a797bfa (diff) | |
download | mandoc-fb53bc928f34b334a138fad9fa6a6b9081a9f7c7.tar.gz |
*** empty log message ***
Diffstat (limited to 'mdocml.c')
-rw-r--r-- | mdocml.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |