From 47680c1fd7fef419b02b46cda50beec3dc16deaa Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 26 Nov 2008 16:50:34 +0000 Subject: Added regression tests. Considerable fixes... blah blah blah... --- dummy.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'dummy.c') diff --git a/dummy.c b/dummy.c index 0104817a..37bf3806 100644 --- a/dummy.c +++ b/dummy.c @@ -1,4 +1,4 @@ -/* $Id: dummy.c,v 1.6 2008/11/25 16:49:57 kristaps Exp $ */ +/* $Id: dummy.c,v 1.7 2008/11/26 16:50:34 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -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); -- cgit v1.2.3-56-ge451