version 1.81, 2010/06/01 14:54:37 |
version 1.84, 2010/06/07 10:52:44 |
Line 141 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", |
"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); |
} |
} |
Line 601 fdesc(struct curparse *curp) |
|
Line 601 fdesc(struct curparse *curp) |
|
case (OUTT_LINT): |
case (OUTT_LINT): |
break; |
break; |
default: |
default: |
curp->outdata = ascii_alloc(80); |
curp->outdata = ascii_alloc(curp->outopts); |
curp->outman = terminal_man; |
curp->outman = terminal_man; |
curp->outmdoc = terminal_mdoc; |
curp->outmdoc = terminal_mdoc; |
curp->outfree = terminal_free; |
curp->outfree = terminal_free; |