version 1.49, 2014/06/20 17:24:00 |
version 1.52, 2014/06/25 00:20:19 |
Line 106 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
Line 106 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
|
|
/* related to document structure */ |
/* related to document structure */ |
".so is fragile, better use ln(1)", |
".so is fragile, better use ln(1)", |
|
"no document body", |
|
"content before the first section header", |
"NAME section must come first", |
"NAME section must come first", |
"bad NAME section contents", |
"bad NAME section contents", |
"sections out of conventional order", |
"sections out of conventional order", |
Line 204 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
Line 206 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
"child violates parent syntax", |
"child violates parent syntax", |
"argument count wrong, violates syntax", |
"argument count wrong, violates syntax", |
"NOT IMPLEMENTED: .so with absolute path or \"..\"", |
"NOT IMPLEMENTED: .so with absolute path or \"..\"", |
"no document body", |
".so request failed", |
"no document prologue", |
"no document prologue", |
"static buffer exhausted", |
"static buffer exhausted", |
|
|
/* system errors */ |
/* system errors */ |
"cannot open file", |
NULL, |
"cannot stat file", |
"cannot stat file", |
"cannot read file", |
"cannot read file", |
}; |
}; |
|
|
if (curp->secondary) |
if (curp->secondary) |
curp->secondary->sz -= pos + 1; |
curp->secondary->sz -= pos + 1; |
mparse_readfd(curp, -1, ln.buf + of); |
mparse_readfd(curp, -1, ln.buf + of); |
if (MANDOCLEVEL_FATAL <= curp->file_status) |
if (MANDOCLEVEL_FATAL <= curp->file_status) { |
|
mandoc_vmsg(MANDOCERR_SO_FAIL, |
|
curp, curp->line, pos, |
|
".so %s", ln.buf + of); |
break; |
break; |
|
} |
pos = 0; |
pos = 0; |
continue; |
continue; |
default: |
default: |
Line 684 mparse_end(struct mparse *curp) |
|
Line 690 mparse_end(struct mparse *curp) |
|
} |
} |
|
|
if ( ! (curp->mdoc || curp->man || curp->sodest)) { |
if ( ! (curp->mdoc || curp->man || curp->sodest)) { |
mandoc_msg(MANDOCERR_NOTMANUAL, curp, 1, 0, NULL); |
mandoc_msg(MANDOCERR_NOTMANUAL, curp, 0, 0, NULL); |
curp->file_status = MANDOCLEVEL_FATAL; |
curp->file_status = MANDOCLEVEL_FATAL; |
return; |
return; |
} |
} |