version 1.112, 2010/12/01 16:28:23 |
version 1.114, 2010/12/01 17:00:05 |
Line 122 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
Line 122 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
|
|
"generic warning", |
"generic warning", |
|
|
|
".so is fragile, better use ln(1)", |
"text should be uppercase", |
"text should be uppercase", |
"sections out of conventional order", |
"sections out of conventional order", |
"section name repeats", |
"section name repeats", |
Line 190 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
Line 191 static const char * const mandocerrs[MANDOCERR_MAX] = |
|
"argument count wrong, violates syntax", |
"argument count wrong, violates syntax", |
"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 \"..\"", |
"no document body", |
"no document body", |
"no document prologue", |
"no document prologue", |
"utsname system call failed", |
"utsname system call failed", |
|
|
parsebuf(struct curparse *curp, struct buf blk, int start) |
parsebuf(struct curparse *curp, struct buf blk, int start) |
{ |
{ |
struct buf ln; |
struct buf ln; |
|
enum rofferr rr; |
int i, of, rc; |
int i, of, rc; |
int pos; /* byte number in the ln buffer */ |
int pos; /* byte number in the ln buffer */ |
int lnn; /* line number in the real file */ |
int lnn; /* line number in the real file */ |
Line 741 parsebuf(struct curparse *curp, struct buf blk, int st |
|
Line 744 parsebuf(struct curparse *curp, struct buf blk, int st |
|
of = 0; |
of = 0; |
|
|
rerun: |
rerun: |
rc = roff_parseln |
rr = roff_parseln |
(curp->roff, curp->line, |
(curp->roff, curp->line, |
&ln.buf, &ln.sz, of, &of); |
&ln.buf, &ln.sz, of, &of); |
|
|
switch (rc) { |
switch (rr) { |
case (ROFF_REPARSE): |
case (ROFF_REPARSE): |
parsebuf(curp, ln, 0); |
parsebuf(curp, ln, 0); |
pos = 0; |
pos = 0; |