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. --- roff.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'roff.c') diff --git a/roff.c b/roff.c index 439784a9..5531dc86 100644 --- a/roff.c +++ b/roff.c @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.113 2010/12/31 14:52:41 kristaps Exp $ */ +/* $Id: roff.c,v 1.114 2010/12/31 18:19:43 kristaps Exp $ */ /* * Copyright (c) 2010 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -1375,3 +1375,10 @@ roff_freestr(struct roff *r) r->first_string = NULL; } + +const struct tbl_span * +roff_span(const struct roff *r) +{ + + return(r->tbl ? tbl_span(r->tbl) : NULL); +} -- cgit v1.2.3