=================================================================== RCS file: /cvs/mandoc/read.c,v retrieving revision 1.68 retrieving revision 1.71 diff -u -p -r1.68 -r1.71 --- mandoc/read.c 2014/07/07 21:36:20 1.68 +++ mandoc/read.c 2014/07/30 12:58:21 1.71 @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.68 2014/07/07 21:36:20 schwarze Exp $ */ +/* $Id: read.c,v 1.71 2014/07/30 12:58:21 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", @@ -191,12 +192,12 @@ static const char * const mandocerrs[MANDOCERR_MAX] = /* 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", + "missing manual name, using \"\"", + "uname(3) system call failed, using UNKNOWN", + "unknown standard specifier", + "skipping request without numeric argument", "skipping all arguments", "skipping excess arguments", @@ -781,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;