diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-01 17:27:44 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-08-01 17:27:44 +0000 |
commit | 85ebc4c346a67252f8e7e3a1c4326920984c01e7 (patch) | |
tree | eb357aa2d9480946318b9ecccf29e86489a2862c /read.c | |
parent | 120073f11aa98a6e6187a5bd14df4505cfe2c087 (diff) | |
download | mandoc-85ebc4c346a67252f8e7e3a1c4326920984c01e7.tar.gz |
mention requests and macros in more messages
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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; |