From 0c49342c6e879353195f2df060ebceb497f66497 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 6 Feb 2015 07:13:14 +0000 Subject: Delete the legacy generic warning type MANDOCERR_ARGCWARN, replacing the last instances by more specific warnings. Improved functionality, minus 50 lines of code. --- mdoc_macro.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mdoc_macro.c') 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; } -- cgit