aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-04 01:50:06 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-04 01:50:06 +0000
commit977b1ebb8e08cb6933cea2f78ab50687dcd69da7 (patch)
tree11fd3cd0b4e0fad31277d6e1fc6826e89aa47dc4 /read.c
parent0b83ee04e7ac6e2aa80a8ca4dffb138d731aa026 (diff)
downloadmandoc-977b1ebb8e08cb6933cea2f78ab50687dcd69da7.tar.gz
mandoc-977b1ebb8e08cb6933cea2f78ab50687dcd69da7.tar.zst
mandoc-977b1ebb8e08cb6933cea2f78ab50687dcd69da7.zip
Clean up messages related to missing arguments.
* Do not warn about empty -column cells, they seem valid to me. * Downgrade empty item and missing -std from ERROR to WARNING. * Hierarchical naming. * Descriptive, not imperative style. * Mention macro names, argument names, and fallbacks. * Garbage collect some unreachable code in post_it().
Diffstat (limited to 'read.c')
-rw-r--r--read.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/read.c b/read.c
index 8cc2d17f..e33ab915 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.59 2014/07/03 23:24:56 schwarze Exp $ */
+/* $Id: read.c,v 1.60 2014/07/04 01:50:07 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -132,11 +132,13 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"conditional request controls empty scope",
"skipping empty macro",
"argument count wrong",
- "missing display type",
- "list type must come first",
- "tag lists require a width argument",
- "missing head in list item",
+ "missing display type, using -ragged",
+ "list type is not the first argument",
+ "missing -width in -tag list, using 8n",
+ "empty head in list item",
+ "empty list item",
"missing font type",
+ "missing -std argument, adding it",
/* related to bad macro arguments */
"skipping argument",
@@ -190,10 +192,8 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"missing end of block",
"scope open on exit",
"uname(3) system call failed",
- "macro requires body argument(s)",
- "macro requires argument(s)",
"request requires a numeric argument",
- "missing list type",
+ "missing list type, using -item",
"line argument(s) will be lost",
"generic fatal error",