summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-31 18:19:43 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-31 18:19:43 +0000
commit38cc8e94560761d1c42f01b74c32483dc510b5e2 (patch)
treeb533e02e1ee5d660cb6806eaad43d8b4450ad68f /roff.c
parent9c243a1c877e4c624333ef5f2c736974a3c52251 (diff)
downloadmandoc-38cc8e94560761d1c42f01b74c32483dc510b5e2.tar.gz
Expose the parsed table API to the world and add accessors through the
roff.h interface.
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/roff.c b/roff.c
index 9536bac3..eecba18c 100644
--- a/roff.c
+++ b/roff.c
@@ -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);
+}