From cde3a32159a80968b274ce1e06c94f2e539e4254 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 31 Dec 2010 18:19:43 +0000 Subject: Expose the parsed table API to the world and add accessors through the roff.h interface. --- tbl.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tbl.c') diff --git a/tbl.c b/tbl.c index 15581b02..7b5e299c 100644 --- a/tbl.c +++ b/tbl.c @@ -1,4 +1,4 @@ -/* $Id: tbl.c,v 1.10 2010/12/31 14:52:41 kristaps Exp $ */ +/* $Id: tbl.c,v 1.11 2010/12/31 18:19:43 kristaps Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons * @@ -120,3 +120,10 @@ tbl_restart(struct tbl *tbl) tbl->part = TBL_PART_LAYOUT; } +const struct tbl_span * +tbl_span(const struct tbl *tbl) +{ + + assert(tbl); + return(tbl->last_span); +} -- cgit v1.2.3