version 1.102, 2014/11/30 02:36:38 |
version 1.105, 2014/12/16 23:44:41 |
|
|
#include "libmandoc.h" |
#include "libmandoc.h" |
#include "mdoc.h" |
#include "mdoc.h" |
#include "man.h" |
#include "man.h" |
#include "main.h" |
|
|
|
#define REPARSE_LIMIT 1000 |
#define REPARSE_LIMIT 1000 |
|
|
Line 146 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
Line 145 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
"empty list item", |
"empty list item", |
"missing font type, using \\fR", |
"missing font type, using \\fR", |
"unknown font type, using \\fR", |
"unknown font type, using \\fR", |
|
"nothing follows prefix", |
"missing -std argument, adding it", |
"missing -std argument, adding it", |
"missing eqn box, using \"\"", |
"missing eqn box, using \"\"", |
|
|
Line 188 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
Line 188 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
"ignore data in cell", |
"ignore data in cell", |
"data block still open", |
"data block still open", |
"ignoring extra data cells", |
"ignoring extra data cells", |
|
"ignoring macro in table", |
|
|
/* related to document structure and macros */ |
/* related to document structure and macros */ |
"input stack limit exceeded, infinite loop?", |
"input stack limit exceeded, infinite loop?", |
Line 755 mparse_parse_buffer(struct mparse *curp, struct buf bl |
|
Line 756 mparse_parse_buffer(struct mparse *curp, struct buf bl |
|
} |
} |
|
|
enum mandoclevel |
enum mandoclevel |
mparse_readmem(struct mparse *curp, const void *buf, size_t len, |
mparse_readmem(struct mparse *curp, void *buf, size_t len, |
const char *file) |
const char *file) |
{ |
{ |
struct buf blk; |
struct buf blk; |
|
|
blk.buf = UNCONST(buf); |
blk.buf = buf; |
blk.sz = len; |
blk.sz = len; |
|
|
mparse_parse_buffer(curp, blk, file); |
mparse_parse_buffer(curp, blk, file); |