source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: better name and wording for the last two non-generic errors
@ 2014-07-30 12:58 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-07-30 12:58 UTC (permalink / raw)
  To: source

Log Message:
-----------
better name and wording for the last two non-generic errors

Modified Files:
--------------
    mdocml:
        mandoc.h
        mdoc_validate.c
        read.c
        roff.c

Revision Data
-------------
Index: mdoc_validate.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_validate.c,v
retrieving revision 1.232
retrieving revision 1.233
diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.232 -r1.233
--- mdoc_validate.c
+++ mdoc_validate.c
@@ -2376,7 +2376,8 @@ post_os(POST_ARGS)
 #else /*!OSNAME */
 	if (NULL == defbuf) {
 		if (-1 == uname(&utsname)) {
-			mdoc_nmsg(mdoc, n, MANDOCERR_UNAME);
+			mandoc_msg(MANDOCERR_OS_UNAME, mdoc->parse,
+			    n->line, n->pos, "Os");
 			defbuf = mandoc_strdup("UNKNOWN");
 		} else
 			mandoc_asprintf(&defbuf, "%s %s",
Index: mandoc.h
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.h,v
retrieving revision 1.143
retrieving revision 1.144
diff -Lmandoc.h -Lmandoc.h -u -p -r1.143 -r1.144
--- mandoc.h
+++ mandoc.h
@@ -149,11 +149,11 @@ enum	mandocerr {
 	/* related to request and macro arguments */
 	MANDOCERR_NAMESC, /* escaped character not allowed in a name */
 	MANDOCERR_ARGCOUNT, /* argument count wrong */
+	MANDOCERR_BL_NOTYPE, /* missing list type, using -item */
 	MANDOCERR_NM_NONAME, /* missing manual name, using "" */
+	MANDOCERR_OS_UNAME, /* uname(3) system call failed, using UNKNOWN */
 	MANDOCERR_ST_BAD, /* unknown standard specifier: standard */
-	MANDOCERR_UNAME, /* uname(3) system call failed */
-	MANDOCERR_NUMERIC, /* request requires a numeric argument */
-	MANDOCERR_BL_NOTYPE, /* missing list type, using -item */
+	MANDOCERR_IT_NONUM, /* skipping request without numeric argument */
 	MANDOCERR_ARG_SKIP, /* skipping all arguments: macro args */
 	MANDOCERR_ARG_EXCESS, /* skipping excess arguments: macro ... args */
 
Index: roff.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/roff.c,v
retrieving revision 1.221
retrieving revision 1.222
diff -Lroff.c -Lroff.c -u -p -r1.221 -r1.222
--- roff.c
+++ roff.c
@@ -1758,7 +1758,7 @@ roff_it(ROFF_ARGS)
 	len = strcspn(cp, " \t");
 	cp[len] = '\0';
 	if ((iv = mandoc_strntoi(cp, len, 10)) <= 0) {
-		mandoc_msg(MANDOCERR_NUMERIC, r->parse,
+		mandoc_msg(MANDOCERR_IT_NONUM, r->parse,
 		    ln, ppos, *bufp + 1);
 		return(ROFF_IGN);
 	}
Index: read.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/read.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -Lread.c -Lread.c -u -p -r1.70 -r1.71
--- read.c
+++ read.c
@@ -193,11 +193,11 @@ static	const char * const	mandocerrs[MAN
 	/* related to request and macro arguments */
 	"escaped character not allowed in a name",
 	"argument count wrong",
+	"missing list type, using -item",
 	"missing manual name, using \"\"",
+	"uname(3) system call failed, using UNKNOWN",
 	"unknown standard specifier",
-	"uname(3) system call failed",
-	"request requires a numeric argument",
-	"missing list type, using -item",
+	"skipping request without numeric argument",
 	"skipping all arguments",
 	"skipping excess arguments",
 
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-07-30 12:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-30 12:58 mdocml: better name and wording for the last two non-generic errors schwarze

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).