=================================================================== RCS file: /cvs/mandoc/read.c,v retrieving revision 1.65 retrieving revision 1.70 diff -u -p -r1.65 -r1.70 --- mandoc/read.c 2014/07/07 11:35:06 1.65 +++ mandoc/read.c 2014/07/30 00:19:16 1.70 @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.65 2014/07/07 11:35:06 schwarze Exp $ */ +/* $Id: read.c,v 1.70 2014/07/30 00:19:16 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); @@ -136,6 +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 \"\"", "empty head in list item", "empty list item", "missing font type, using \\fR", @@ -149,6 +150,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = "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", @@ -179,19 +181,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", - "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", + "inserting missing end of block", + "appending missing end of block", + + /* related to request and macro arguments */ + "escaped character not allowed in a name", + "argument count wrong", + "missing manual name, using \"\"", + "unknown standard specifier", "uname(3) system call failed", "request requires a numeric argument", "missing list type, using -item", @@ -779,7 +782,7 @@ out: struct mparse * mparse_alloc(int options, enum mandoclevel wlevel, - mandocmsg mmsg, char *defos) + mandocmsg mmsg, const char *defos) { struct mparse *curp;