From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Remove long-standing FIXME regarding the consolidation of
Date: Sun, 5 Dec 2010 10:55:01 -0500 (EST) [thread overview]
Message-ID: <201012051555.oB5Ft1tO014204@krisdoz.my.domain> (raw)
Log Message:
-----------
Remove long-standing FIXME regarding the consolidation of WIDTHARG and
NOARGV warnings. From patch by schwarze@.
Modified Files:
--------------
mdocml:
main.c
mandoc.h
mdoc_validate.c
Revision Data
-------------
Index: mdoc_validate.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_validate.c,v
retrieving revision 1.136
retrieving revision 1.137
diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.136 -r1.137
--- mdoc_validate.c
+++ mdoc_validate.c
@@ -753,9 +753,8 @@ pre_bl(PRE_ARGS)
case (LIST_inset):
/* FALLTHROUGH */
case (LIST_item):
- if (NULL == n->data.Bl->width)
- break;
- mdoc_nmsg(mdoc, n, MANDOCERR_WIDTHARG);
+ if (n->data.Bl->width)
+ mdoc_nmsg(mdoc, n, MANDOCERR_IGNARGV);
break;
default:
break;
Index: mandoc.h
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -Lmandoc.h -Lmandoc.h -u -p -r1.28 -r1.29
--- mandoc.h
+++ mandoc.h
@@ -56,8 +56,6 @@ enum mandocerr {
MANDOCERR_BADESCAPE, /* bad escape sequence */
MANDOCERR_BADQUOTE, /* unterminated quoted string */
MANDOCERR_NOWIDTHARG, /* argument requires the width argument */
- /* FIXME: merge with MANDOCERR_IGNARGV. */
- MANDOCERR_WIDTHARG, /* superfluous width argument */
MANDOCERR_BADDATE, /* bad date argument */
MANDOCERR_BADWIDTH, /* bad width argument */
MANDOCERR_BADMSEC, /* unknown manual section */
Index: main.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/main.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -Lmain.c -Lmain.c -u -p -r1.117 -r1.118
--- main.c
+++ main.c
@@ -133,7 +133,6 @@ static const char * const mandocerrs[MAN
"bad escape sequence",
"unterminated quoted string",
"argument requires the width argument",
- "superfluous width argument",
"bad date argument",
"bad width argument",
"unknown manual section",
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
reply other threads:[~2010-12-05 15:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201012051555.oB5Ft1tO014204@krisdoz.my.domain \
--to=kristaps@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).