From 499b7cc2df175e8f1cd3a0a7db00455e691d03de Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 25 Jul 2011 15:37:00 +0000 Subject: Implement the first steps of equation parsing from within libmdoc. This consists of a shim around the text parser that calls out to libroff if equation components exist on the line. Right now this will do nothing, as the equation delimiter always returns nil. --- tbl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tbl.c') diff --git a/tbl.c b/tbl.c index 6ef2f735..b3d651be 100644 --- a/tbl.c +++ b/tbl.c @@ -1,4 +1,4 @@ -/* $Id: tbl.c,v 1.25 2011/04/04 23:04:38 kristaps Exp $ */ +/* $Id: tbl.c,v 1.26 2011/07/25 15:37:00 kristaps Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011 Ingo Schwarze @@ -154,8 +154,12 @@ tbl_span(struct tbl_node *tbl) } void -tbl_end(struct tbl_node *tbl) +tbl_end(struct tbl_node **tblp) { + struct tbl_node *tbl; + + tbl = *tblp; + *tblp = NULL; if (NULL == tbl->first_span || NULL == tbl->first_span->first) mandoc_msg(MANDOCERR_TBLNODATA, tbl->parse, -- cgit v1.2.3-56-ge451