diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-03 21:23:54 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-07-03 21:23:54 +0000 |
commit | b20db833ab9fe345d4463b10d6fa74aa21c49aca (patch) | |
tree | c073ec6d9d2055d1f8c7b155b5c53ce35dfeef57 /roff.c | |
parent | eea7a417f94cca4382928d176498141c7b113250 (diff) | |
download | mandoc-b20db833ab9fe345d4463b10d6fa74aa21c49aca.tar.gz mandoc-b20db833ab9fe345d4463b10d6fa74aa21c49aca.tar.zst mandoc-b20db833ab9fe345d4463b10d6fa74aa21c49aca.zip |
MANDOCERR_NOARGS reported three completely unrelated classes of problems.
Split the roff(7) parts out of it and report the request names for these cases.
Diffstat (limited to 'roff.c')
-rw-r--r-- | roff.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.215 2014/07/01 00:32:29 schwarze Exp $ */ +/* $Id: roff.c,v 1.216 2014/07/03 21:23:54 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org> @@ -917,7 +917,8 @@ roff_block(ROFF_ARGS) if (ROFF_ig != tok) { if ('\0' == *cp) { - mandoc_msg(MANDOCERR_NOARGS, r->parse, ln, ppos, NULL); + mandoc_msg(MANDOCERR_REQ_EMPTY, r->parse, + ln, ppos, roffs[tok].name); return(ROFF_IGN); } @@ -1285,7 +1286,8 @@ roff_cond(ROFF_ARGS) */ if ('\0' == (*bufp)[pos]) - mandoc_msg(MANDOCERR_NOARGS, r->parse, ln, ppos, NULL); + mandoc_msg(MANDOCERR_COND_EMPTY, r->parse, + ln, ppos, roffs[tok].name); r->last->endspan = 1; |