=================================================================== RCS file: /cvs/mandoc/mandoc_msg.c,v retrieving revision 1.10 retrieving revision 1.19 diff -u -p -r1.10 -r1.19 --- mandoc/mandoc_msg.c 2020/01/19 18:02:00 1.10 +++ mandoc/mandoc_msg.c 2022/06/05 13:54:09 1.19 @@ -1,7 +1,7 @@ -/* $Id: mandoc_msg.c,v 1.10 2020/01/19 18:02:00 schwarze Exp $ */ +/* $OpenBSD: mandoc_msg.c,v 1.19 2022/06/05 13:54:09 schwarze Exp $ */ /* + * Copyright (c) 2014-2022 Ingo Schwarze * Copyright (c) 2010, 2011 Kristaps Dzonsons - * Copyright (c) 2014-2020 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -14,6 +14,8 @@ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * Implementation of warning and error messages for mandoc(1). */ #include "config.h" @@ -53,7 +55,6 @@ static const char *const type_message[MANDOCERR_MAX] = "unknown architecture", "operating system explicitly specified", "RCS id missing", - "referenced manual not found", "generic style suggestion", @@ -67,10 +68,12 @@ static const char *const type_message[MANDOCERR_MAX] = "consider using OS macro", "errnos out of order", "duplicate errno", + "referenced manual not found", "trailing delimiter", "no blank before trailing delimiter", "fill mode already enabled, skipping", "fill mode already disabled, skipping", + "input text line longer than 80 bytes", "verbatim \"--\", maybe consider using \\(em", "function name without markup", "whitespace at end of input line", @@ -83,6 +86,7 @@ static const char *const type_message[MANDOCERR_MAX] = "missing manual title, using \"\"", "missing manual section, using \"\"", "unknown manual section", + "filename/section mismatch", "missing date, using \"\"", "cannot parse date, using it verbatim", "date in the future, using it anyway", @@ -162,6 +166,7 @@ static const char *const type_message[MANDOCERR_MAX] = "invalid Boolean argument", "argument contains two font escapes", "unknown font, skipping request", + "ignoring distance argument", "odd number of characters in request", /* related to plain text */ @@ -187,6 +192,7 @@ static const char *const type_message[MANDOCERR_MAX] = "empty tbl layout", "invalid character in tbl layout", "unmatched parenthesis in tbl layout", + "ignoring excessive spacing in tbl layout", "tbl without any data cells", "ignoring data in spanned tbl cell", "ignoring extra tbl data cells", @@ -211,11 +217,13 @@ static const char *const type_message[MANDOCERR_MAX] = "escaped character not allowed in a name", "using macro argument outside macro", "argument number is not numeric", + "negative argument, using 0", "NOT IMPLEMENTED: Bd -file", "skipping display without arguments", "missing list type, using -item", "argument is not numeric, using 1", "argument is not a character", + "skipping unusable escape sequence", "missing manual name, using \"\"", "uname(3) system call failed, using UNKNOWN", "unknown standard specifier", @@ -228,6 +236,11 @@ static const char *const type_message[MANDOCERR_MAX] = "skipping excess arguments", "divide by zero", + /* related to escape sequences */ + "incomplete escape sequence", + "invalid special character", + "unknown special character", + "unsupported feature", "input too large", "unsupported control character", @@ -240,6 +253,8 @@ static const char *const type_message[MANDOCERR_MAX] = "eqn delim option in tbl", "unsupported tbl layout modifier", "ignoring macro in table", + "skipping tbl in -Tman mode", + "skipping eqn in -Tman mode", /* bad command line arguments */ NULL, @@ -250,6 +265,7 @@ static const char *const type_message[MANDOCERR_MAX] = "bad option value", "duplicate option value", "no such tag", + "-Tmarkdown unsupported for man(7) input", /* system errors */ NULL,