=================================================================== RCS file: /cvs/mandoc/read.c,v retrieving revision 1.150.2.4 retrieving revision 1.150.2.6 diff -u -p -r1.150.2.4 -r1.150.2.6 --- mandoc/read.c 2017/01/09 02:24:01 1.150.2.4 +++ mandoc/read.c 2017/01/28 23:35:05 1.150.2.6 @@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.150.2.4 2017/01/09 02:24:01 schwarze Exp $ */ +/* $Id: read.c,v 1.150.2.6 2017/01/28 23:35:05 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010-2017 Ingo Schwarze @@ -179,6 +179,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = "blank line in fill mode, using .sp", "tab in filled text", "whitespace at end of input line", + "new sentence, new line", "bad comment style", "invalid escape sequence", "undefined string, using \"\"", @@ -870,6 +871,13 @@ mparse_result(struct mparse *curp, struct roff_man **m } if (man) *man = curp->man; +} + +void +mparse_updaterc(struct mparse *curp, enum mandoclevel *rc) +{ + if (curp->file_status > *rc) + *rc = curp->file_status; } void