=================================================================== RCS file: /cvs/mandoc/read.c,v retrieving revision 1.63 retrieving revision 1.69 diff -u -p -r1.63 -r1.69 --- mandoc/read.c 2014/07/05 12:34:17 1.63 +++ mandoc/read.c 2014/07/09 11:31:43 1.69 @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.63 2014/07/05 12:34:17 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); @@ -144,20 +144,22 @@ static const char * const mandocerrs[MANDOCERR_MAX] = /* related to bad macro arguments */ "skipping argument", + "unterminated quoted argument", "duplicate argument", "skipping duplicate display type", "skipping duplicate list type", "unknown AT&T UNIX version", + "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", @@ -178,20 +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", + "skipping unknown macro", + "skipping column outside column list", + "skipping end of block that is not open", + "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", - "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", "unknown standard specifier", - "skipping column outside column list", - "skipping end of block that is not open", - "missing end of block", - "scope open on exit", "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;