version 1.64, 2010/05/14 17:59:07 |
version 1.65, 2010/05/15 04:46:10 |
Line 78 struct curparse { |
|
Line 78 struct curparse { |
|
#define FL_IGN_ERRORS (1 << 4) /* Ignore failed parse. */ |
#define FL_IGN_ERRORS (1 << 4) /* Ignore failed parse. */ |
enum intt inttype; /* Input parsers... */ |
enum intt inttype; /* Input parsers... */ |
struct man *man; |
struct man *man; |
struct man *lastman; |
|
struct mdoc *mdoc; |
struct mdoc *mdoc; |
struct mdoc *lastmdoc; |
|
enum outt outtype; /* Output devices... */ |
enum outt outtype; /* Output devices... */ |
out_mdoc outmdoc; |
out_mdoc outmdoc; |
out_man outman; |
out_man outman; |
Line 496 pset(const char *buf, int pos, struct curparse *curp, |
|
Line 494 pset(const char *buf, int pos, struct curparse *curp, |
|
curp->mdoc = mdoc_init(curp); |
curp->mdoc = mdoc_init(curp); |
if (NULL == (*mdoc = curp->mdoc)) |
if (NULL == (*mdoc = curp->mdoc)) |
return(0); |
return(0); |
curp->lastmdoc = *mdoc; |
|
return(1); |
return(1); |
case (INTT_MAN): |
case (INTT_MAN): |
if (NULL == curp->man) |
if (NULL == curp->man) |
curp->man = man_init(curp); |
curp->man = man_init(curp); |
if (NULL == (*man = curp->man)) |
if (NULL == (*man = curp->man)) |
return(0); |
return(0); |
curp->lastman = *man; |
|
return(1); |
return(1); |
default: |
default: |
break; |
break; |
Line 514 pset(const char *buf, int pos, struct curparse *curp, |
|
Line 510 pset(const char *buf, int pos, struct curparse *curp, |
|
curp->mdoc = mdoc_init(curp); |
curp->mdoc = mdoc_init(curp); |
if (NULL == (*mdoc = curp->mdoc)) |
if (NULL == (*mdoc = curp->mdoc)) |
return(0); |
return(0); |
curp->lastmdoc = *mdoc; |
|
return(1); |
return(1); |
} |
} |
|
|
Line 522 pset(const char *buf, int pos, struct curparse *curp, |
|
Line 517 pset(const char *buf, int pos, struct curparse *curp, |
|
curp->man = man_init(curp); |
curp->man = man_init(curp); |
if (NULL == (*man = curp->man)) |
if (NULL == (*man = curp->man)) |
return(0); |
return(0); |
curp->lastman = *man; |
|
return(1); |
return(1); |
} |
} |
|
|