summaryrefslogtreecommitdiffstats
path: root/mdoc_macro.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-06 07:13:14 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-06 07:13:14 +0000
commit0c49342c6e879353195f2df060ebceb497f66497 (patch)
tree85a0c5ef0f49f8974731f4a4347de279e8f166e5 /mdoc_macro.c
parentf1b8e7051e92af5f6c90c234ea75598ee7976318 (diff)
downloadmandoc-0c49342c6e879353195f2df060ebceb497f66497.tar.gz
Delete the legacy generic warning type MANDOCERR_ARGCWARN,
replacing the last instances by more specific warnings. Improved functionality, minus 50 lines of code.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index c22e61a1..48f0cf92 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -1403,9 +1403,10 @@ in_line_eoln(MACRO_PROT_ARGS)
rew_last(mdoc, mdoc->last->parent);
}
- if (buf[*pos] == '\0' && tok == MDOC_Fd) {
+ if (buf[*pos] == '\0' &&
+ (tok == MDOC_Fd || mdoc_macronames[tok][0] == '%')) {
mandoc_msg(MANDOCERR_MACRO_EMPTY, mdoc->parse,
- line, ppos, "Fd");
+ line, ppos, mdoc_macronames[tok]);
return;
}