summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-02 13:10:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-02 13:10:45 +0000
commite98d951b402f5f61bf0fafc86ae5ad5a03f1c85e (patch)
tree23bbf173d3bf3034ab37c0c4935226c4dc6559c1 /mdoc_validate.c
parent5974c463fa58c6b119a1cacf57644ad24c66106e (diff)
downloadmandoc-e98d951b402f5f61bf0fafc86ae5ad5a03f1c85e.tar.gz
Disentangle the MANDOCERR_CHILD message, which reported three
completely different things, into three distinct messages. Also mention the macro names we are talking about.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index cf00a0f4..cf75c67a 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1117,7 +1117,8 @@ post_vt(POST_ARGS)
for (n = mdoc->last->child; n; n = n->next)
if (MDOC_TEXT != n->type)
- mdoc_nmsg(mdoc, n, MANDOCERR_CHILD);
+ mandoc_msg(MANDOCERR_VT_CHILD, mdoc->parse,
+ n->line, n->pos, mdoc_macronames[n->tok]);
return(1);
}
@@ -1613,7 +1614,9 @@ post_bl(POST_ARGS)
continue;
}
- mdoc_nmsg(mdoc, nchild, MANDOCERR_CHILD);
+ mandoc_msg(MANDOCERR_BL_MOVE, mdoc->parse,
+ nchild->line, nchild->pos,
+ mdoc_macronames[nchild->tok]);
/*
* Move the node out of the Bl block.
@@ -1782,7 +1785,8 @@ post_rs(POST_ARGS)
}
next = nn->next;
- mdoc_nmsg(mdoc, nn, MANDOCERR_CHILD);
+ mandoc_msg(MANDOCERR_RS_SKIP, mdoc->parse,
+ nn->line, nn->pos, mdoc_macronames[nn->tok]);
mdoc_node_delete(mdoc, nn);
}