version 1.51, 2009/02/20 07:43:15 |
version 1.52, 2009/02/20 11:04:23 |
Line 224 buf_begin(struct md_parse *p) |
|
Line 224 buf_begin(struct md_parse *p) |
|
static int |
static int |
parse_leave(struct md_parse *p, int code) |
parse_leave(struct md_parse *p, int code) |
{ |
{ |
|
extern int termprint(const struct mdoc_node *, |
|
const struct mdoc_meta *); |
|
|
if (NULL == p->mdoc) |
if (NULL == p->mdoc) |
return(code); |
return(code); |
Line 231 parse_leave(struct md_parse *p, int code) |
|
Line 233 parse_leave(struct md_parse *p, int code) |
|
if ( ! mdoc_endparse(p->mdoc)) |
if ( ! mdoc_endparse(p->mdoc)) |
code = 0; |
code = 0; |
|
|
#if 0 |
|
/* TODO */ |
/* TODO */ |
if (code && ! mdoc_write(p->out, mdoc_node(p->mdoc))) { |
if (code && ! termprint(mdoc_node(p->mdoc), mdoc_meta(p->mdoc))) |
warnx("%s: write error", p->out); |
|
code = 0; |
code = 0; |
} |
|
#endif |
|
|
|
mdoc_free(p->mdoc); |
mdoc_free(p->mdoc); |
return(code); |
return(code); |