-static const char * const mandocerrs[MANDOCERR_MAX] = {
- "ok",
-
- "generic warning",
-
- "text should be uppercase",
- "sections out of conventional order",
- "section name repeats",
- "out of order prologue",
- "repeated prologue entry",
- "list type must come first",
- "bad standard",
- "bad library",
- "bad escape sequence",
- "unterminated quoted string",
- "argument requires the width argument",
- "superfluous width argument",
- "ignoring argument",
- "bad date argument",
- "bad width argument",
- "unknown manual section",
- "section not in conventional manual section",
- "end of line whitespace",
- "scope open on exit",
-
- "generic error",
-
- "NAME section must come first",
- "bad Boolean value",
- "child violates parent syntax",
- "bad AT&T symbol",
- "list type repeated",
- "display type repeated",
- "argument repeated",
- "manual name not yet set",
- "obsolete macro ignored",
- "empty macro ignored",
- "macro not allowed in body",
- "macro not allowed in prologue",
- "bad character",
- "bad NAME section contents",
- "no blank lines",
- "no text in this context",
- "bad comment style",
- "unknown macro will be lost",
- "line scope broken",
- "scope broken",
- "argument count wrong",
- "request scope close w/none open",
- "scope already open",
- "macro requires line argument(s)",
- "macro requires body argument(s)",
- "macro requires argument(s)",
- "no title in document",
- "missing list type",
- "missing display type",
- "line argument(s) will be lost",
- "body argument(s) will be lost",
-
- "generic fatal error",
-
- "column syntax is inconsistent",
- "missing font type",
- "displays may not be nested",
- "unsupported display type",
- "no scope to rewind: syntax violated",
- "scope broken, syntax violated",
- "line scope broken, syntax violated",
- "argument count wrong, violates syntax",
- "child violates parent syntax",
- "argument count wrong, violates syntax",
- "no document body",
- "no document prologue",
- "utsname system call failed",
- "memory exhausted",
-};
-
-static void fdesc(struct curparse *);
-static void ffile(const char *, struct curparse *);
-static int foptions(int *, char *);
-static struct man *man_init(struct curparse *);
-static struct mdoc *mdoc_init(struct curparse *);
-static struct roff *roff_init(struct curparse *);
-static int moptions(enum intt *, char *);
-static int mmsg(enum mandocerr, void *,
- int, int, const char *);
-static int pset(const char *, int, struct curparse *,
- struct man **, struct mdoc **);