diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-27 19:43:02 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-27 19:43:02 +0000 |
commit | b00fcba133e2170f5308eb02bfa9b9b8d7dea0a0 (patch) | |
tree | cc2381829bd6658e8c0cd731faafa3e3bc1a0ac2 /mdoc.c | |
parent | 5226c4fdcd61545e72ba42ed649a213a893e2411 (diff) | |
download | mandoc-b00fcba133e2170f5308eb02bfa9b9b8d7dea0a0.tar.gz |
main.c using fprintf instead of warnx for parse errors (like cc).
Error string is now file:line:col: message.
Removed sed from vim -q example in manuals.7.
Fixed column reporting (off by one).
Diffstat (limited to 'mdoc.c')
-rw-r--r-- | mdoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -657,10 +657,10 @@ static int macrowarn(struct mdoc *m, int ln, const char *buf) { if ( ! (MDOC_IGN_MACRO & m->pflags)) - return(mdoc_verr(m, ln, 1, + return(mdoc_verr(m, ln, 0, "unknown macro: %s%s", buf, strlen(buf) > 3 ? "..." : "")); - return(mdoc_vwarn(m, ln, 1, "unknown macro: %s%s", + return(mdoc_vwarn(m, ln, 0, "unknown macro: %s%s", buf, strlen(buf) > 3 ? "..." : "")); } |