version 1.154, 2016/12/07 22:59:29 |
version 1.159, 2017/02/03 17:56:59 |
|
|
/* $Id$ */ |
/* $Id$ */ |
/* |
/* |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> |
* Copyright (c) 2010-2016 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org> |
* Copyright (c) 2010, 2012 Joerg Sonnenberger <joerg@netbsd.org> |
* Copyright (c) 2010, 2012 Joerg Sonnenberger <joerg@netbsd.org> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
Line 108 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
Line 108 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
"no document body", |
"no document body", |
"content before first section header", |
"content before first section header", |
"first section is not \"NAME\"", |
"first section is not \"NAME\"", |
"NAME section without name", |
"NAME section without Nm before Nd", |
"NAME section without description", |
"NAME section without description", |
"description not at the end of NAME", |
"description not at the end of NAME", |
"bad NAME section content", |
"bad NAME section content", |
|
"missing comma before name", |
"missing description line, using \"\"", |
"missing description line, using \"\"", |
"sections out of conventional order", |
"sections out of conventional order", |
"duplicate section title", |
"duplicate section title", |
Line 150 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
Line 151 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
"unknown font type, using \\fR", |
"unknown font type, using \\fR", |
"nothing follows prefix", |
"nothing follows prefix", |
"empty reference block", |
"empty reference block", |
|
"missing section argument", |
"missing -std argument, adding it", |
"missing -std argument, adding it", |
"missing option string, using \"\"", |
"missing option string, using \"\"", |
"missing resource identifier, using \"\"", |
"missing resource identifier, using \"\"", |
Line 175 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
Line 177 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
"blank line in fill mode, using .sp", |
"blank line in fill mode, using .sp", |
"tab in filled text", |
"tab in filled text", |
"whitespace at end of input line", |
"whitespace at end of input line", |
|
"new sentence, new line", |
"bad comment style", |
"bad comment style", |
"invalid escape sequence", |
"invalid escape sequence", |
"undefined string, using \"\"", |
"undefined string, using \"\"", |
Line 834 mparse_reset(struct mparse *curp) |
|
Line 837 mparse_reset(struct mparse *curp) |
|
|
|
free(curp->sodest); |
free(curp->sodest); |
curp->sodest = NULL; |
curp->sodest = NULL; |
|
curp->gzip = 0; |
} |
} |
|
|
void |
void |
Line 862 mparse_result(struct mparse *curp, struct roff_man **m |
|
Line 866 mparse_result(struct mparse *curp, struct roff_man **m |
|
} |
} |
if (man) |
if (man) |
*man = curp->man; |
*man = curp->man; |
|
} |
|
|
|
void |
|
mparse_updaterc(struct mparse *curp, enum mandoclevel *rc) |
|
{ |
|
if (curp->file_status > *rc) |
|
*rc = curp->file_status; |
} |
} |
|
|
void |
void |