=================================================================== RCS file: /cvs/mandoc/read.c,v retrieving revision 1.61 retrieving revision 1.69 diff -u -p -r1.61 -r1.69 --- mandoc/read.c 2014/07/04 16:12:08 1.61 +++ mandoc/read.c 2014/07/09 11:31:43 1.69 @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.61 2014/07/04 16:12:08 schwarze Exp $ */ +/* $Id: read.c,v 1.69 2014/07/09 11:31:43 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -65,7 +65,7 @@ struct mparse { mandocmsg mmsg; /* warning/error message handler */ const char *file; struct buf *secondary; - char *defos; /* default operating system */ + const char *defos; /* default operating system */ }; static void resize_buf(struct buf *, size_t); @@ -131,6 +131,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = "skipping empty request", "conditional request controls empty scope", "skipping empty macro", + "empty argument, using 0n", "argument count wrong", "missing display type, using -ragged", "list type is not the first argument", @@ -143,22 +144,22 @@ static const char * const mandocerrs[MANDOCERR_MAX] = /* related to bad macro arguments */ "skipping argument", + "unterminated quoted argument", "duplicate argument", - "duplicate display type", - "duplicate list type", + "skipping duplicate display type", + "skipping duplicate list type", "unknown AT&T UNIX version", - "bad Boolean value", - "unknown font", - "unknown standard specifier", - "bad width argument", + "invalid content in Rs block", + "invalid Boolean argument", + "unknown font, skipping request", /* related to plain text */ - "blank line in non-literal context", - "tab in non-literal context", - "end of line whitespace", + "blank line in fill mode, using .sp", + "tab in filled text", + "whitespace at end of input line", "bad comment style", - "bad escape sequence", - "unterminated quoted string", + "invalid escape sequence", + "undefined string, using \"\"", "generic error", @@ -179,19 +180,20 @@ static const char * const mandocerrs[MANDOCERR_MAX] = "data block still open", "ignoring extra data cells", + /* related to document structure and macros */ "input stack limit exceeded, infinite loop?", "skipping bad character", - "escaped character not allowed in a name", - "manual name not yet set", - "skipping text before first section header", "skipping unknown macro", - "NOT IMPLEMENTED, please use groff: skipping request", - "argument count wrong", - "skipping invalid content in .Rs block", "skipping column outside column list", "skipping end of block that is not open", - "missing end of block", - "scope open on exit", + "inserting missing end of block", + "appending missing end of block", + + /* related to request and macro arguments */ + "escaped character not allowed in a name", + "manual name not yet set", + "argument count wrong", + "unknown standard specifier", "uname(3) system call failed", "request requires a numeric argument", "missing list type, using -item", @@ -779,7 +781,7 @@ out: struct mparse * mparse_alloc(int options, enum mandoclevel wlevel, - mandocmsg mmsg, char *defos) + mandocmsg mmsg, const char *defos) { struct mparse *curp;