diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-20 11:04:23 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-20 11:04:23 +0000 |
commit | f98cf823475cf1b354a213c9bf26d7927e50c14b (patch) | |
tree | 1cf532e1f505da4c59ab4c1a3a8039ed0fd005f4 /mdocml.c | |
parent | 5f092f7efcf8ffa014e85cd8377e5c4aa1dc4147 (diff) | |
download | mandoc-f98cf823475cf1b354a213c9bf26d7927e50c14b.tar.gz mandoc-f98cf823475cf1b354a213c9bf26d7927e50c14b.tar.zst mandoc-f98cf823475cf1b354a213c9bf26d7927e50c14b.zip |
Re-added tree.c (for now).
Added initial terminal-output filter (term.c).
Diffstat (limited to 'mdocml.c')
-rw-r--r-- | mdocml.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1,4 +1,4 @@ - /* $Id: mdocml.c,v 1.51 2009/02/20 07:43:15 kristaps Exp $ */ + /* $Id: mdocml.c,v 1.52 2009/02/20 11:04:23 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se> * @@ -224,6 +224,8 @@ buf_begin(struct md_parse *p) static int parse_leave(struct md_parse *p, int code) { + extern int termprint(const struct mdoc_node *, + const struct mdoc_meta *); if (NULL == p->mdoc) return(code); @@ -231,13 +233,9 @@ parse_leave(struct md_parse *p, int code) if ( ! mdoc_endparse(p->mdoc)) code = 0; -#if 0 /* TODO */ - if (code && ! mdoc_write(p->out, mdoc_node(p->mdoc))) { - warnx("%s: write error", p->out); + if (code && ! termprint(mdoc_node(p->mdoc), mdoc_meta(p->mdoc))) code = 0; - } -#endif mdoc_free(p->mdoc); return(code); |