version 1.79, 2010/05/17 22:11:42 |
version 1.83, 2010/06/06 20:44:53 |
Line 97 struct curparse { |
|
Line 97 struct curparse { |
|
static const char * const mandocerrs[MANDOCERR_MAX] = { |
static const char * const mandocerrs[MANDOCERR_MAX] = { |
"ok", |
"ok", |
"text should be uppercase", |
"text should be uppercase", |
"sections out of conentional order", |
"sections out of conventional order", |
"section name repeats", |
"section name repeats", |
"out of order prologue", |
"out of order prologue", |
"repeated prologue entry", |
"repeated prologue entry", |
"list type must come first", |
"list type must come first", |
"column syntax is inconsistent", |
|
"bad standard", |
"bad standard", |
"bad library", |
"bad library", |
"bad escape sequence", |
"bad escape sequence", |
Line 111 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
Line 110 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
"superfluous width argument", |
"superfluous width argument", |
"bad date argument", |
"bad date argument", |
"bad width argument", |
"bad width argument", |
"unknown manual sction", |
"unknown manual section", |
"section not in conventional manual section", |
"section not in conventional manual section", |
"end of line whitespace", |
"end of line whitespace", |
"scope open on exit", |
"scope open on exit", |
Line 142 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
Line 141 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
"macro requires body argument(s)", |
"macro requires body argument(s)", |
"macro requires argument(s)", |
"macro requires argument(s)", |
"no title in document", |
"no title in document", |
|
"missing list type", |
"line argument(s) will be lost", |
"line argument(s) will be lost", |
"body argument(s) will be lost", |
"body argument(s) will be lost", |
|
"column syntax is inconsistent", |
"missing font type", |
"missing font type", |
"missing display type", |
"missing display type", |
"missing list type", |
|
"displays may not be nested", |
"displays may not be nested", |
"no scope to rewind: syntax violated", |
"no scope to rewind: syntax violated", |
"scope broken, syntax violated", |
"scope broken, syntax violated", |
Line 395 read_whole_file(struct curparse *curp, struct buf *fb, |
|
Line 395 read_whole_file(struct curparse *curp, struct buf *fb, |
|
*with_mmap = 1; |
*with_mmap = 1; |
fb->sz = (size_t)st.st_size; |
fb->sz = (size_t)st.st_size; |
fb->buf = mmap(NULL, fb->sz, PROT_READ, |
fb->buf = mmap(NULL, fb->sz, PROT_READ, |
MAP_FILE, curp->fd, 0); |
MAP_FILE|MAP_SHARED, curp->fd, 0); |
if (fb->buf != MAP_FAILED) |
if (fb->buf != MAP_FAILED) |
return(1); |
return(1); |
} |
} |