aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/read.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-01 17:27:44 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-01 17:27:44 +0000
commitc260eb4395a2cd23f14cc62494a102c005154610 (patch)
tree7a448e4d31ce74e7528c083c43017949e1d57a69 /read.c
parent89c4b06f4c8f02f6fac64246bbb71291d21f2529 (diff)
downloadmandoc-c260eb4395a2cd23f14cc62494a102c005154610.tar.gz
mandoc-c260eb4395a2cd23f14cc62494a102c005154610.tar.zst
mandoc-c260eb4395a2cd23f14cc62494a102c005154610.zip
mention requests and macros in more messages
Diffstat (limited to 'read.c')
-rw-r--r--read.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/read.c b/read.c
index 8e37e911..95c0fe40 100644
--- a/read.c
+++ b/read.c
@@ -1,4 +1,4 @@
-/* $Id: read.c,v 1.77 2014/08/01 15:08:46 schwarze Exp $ */
+/* $Id: read.c,v 1.78 2014/08/01 17:27:44 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -123,8 +123,8 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"nested displays are not portable",
"moving content out of list",
".Vt block has child macro",
- "fill mode already enabled, skipping .fi",
- "fill mode already disabled, skipping .nf",
+ "fill mode already enabled, skipping",
+ "fill mode already disabled, skipping",
"line scope broken",
/* related to missing macro arguments */
@@ -136,7 +136,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"missing display type, using -ragged",
"list type is not the first argument",
"missing -width in -tag list, using 8n",
- "missing name for .Ex, using \"\"",
+ "missing utility name, using \"\"",
"empty head in list item",
"empty list item",
"missing font type, using \\fR",
@@ -206,7 +206,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = {
"generic fatal error",
"input too large",
- "NOT IMPLEMENTED: .Bd -file",
+ "NOT IMPLEMENTED: Bd -file",
"NOT IMPLEMENTED: .so with absolute path or \"..\"",
".so request failed",
@@ -353,8 +353,8 @@ mparse_buf_r(struct mparse *curp, struct buf blk, int start)
if ( ! (isascii(c) &&
(isgraph(c) || isblank(c)))) {
- mandoc_msg(MANDOCERR_BADCHAR, curp,
- curp->line, pos, NULL);
+ mandoc_vmsg(MANDOCERR_BADCHAR, curp,
+ curp->line, pos, "0x%x", c);
i++;
ln.buf[pos++] = '?';
continue;
@@ -410,8 +410,8 @@ mparse_buf_r(struct mparse *curp, struct buf blk, int start)
if ( ! (isascii(c) &&
(isgraph(c) || isblank(c)))) {
- mandoc_msg(MANDOCERR_BADCHAR, curp,
- curp->line, pos, NULL);
+ mandoc_vmsg(MANDOCERR_BADCHAR, curp,
+ curp->line, pos, "0x%x", c);
i += 2;
ln.buf[pos++] = '?';
continue;