summaryrefslogtreecommitdiffstats
path: root/dummy.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2008-11-26 16:50:34 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2008-11-26 16:50:34 +0000
commit0b18af17c9504e4688a2bbd1cbd2d1ca2b937d67 (patch)
treed1d7475d441e097a3ba6571612ab4bbc7cd2cc93 /dummy.c
parent984f70eeb4b5c4ef5ae5b30cf3ebda2c8e350d10 (diff)
downloadmandoc-0b18af17c9504e4688a2bbd1cbd2d1ca2b937d67.tar.gz
Added regression tests.
Considerable fixes... blah blah blah...
Diffstat (limited to 'dummy.c')
-rw-r--r--dummy.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/dummy.c b/dummy.c
index c4a678f3..59e85882 100644
--- a/dummy.c
+++ b/dummy.c
@@ -42,6 +42,7 @@ static char dbg_line[72];
struct md_dummy {
struct rofftree *tree;
+ struct roffcb cb;
};
static void
@@ -160,9 +161,14 @@ md_init_dummy(const struct md_args *args,
return(NULL);
}
- p->tree = roff_alloc(args, mbuf, rbuf,
- md_dummy_text_in, md_dummy_text_out,
- md_dummy_blk_in, md_dummy_blk_out);
+ p->cb.roffhead = NULL;
+ p->cb.rofftail = NULL;
+ p->cb.roffin = md_dummy_text_in;
+ p->cb.roffout = md_dummy_text_out;
+ p->cb.roffblkin = md_dummy_blk_in;
+ p->cb.roffblkout = md_dummy_blk_out;
+
+ p->tree = roff_alloc(args, mbuf, rbuf, &p->cb);
if (NULL == p->tree) {
free(p);