summaryrefslogtreecommitdiffstats
path: root/tbl.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 /tbl.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 'tbl.c')
-rw-r--r--tbl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tbl.c b/tbl.c
index c6267866..f91aec29 100644
--- a/tbl.c
+++ b/tbl.c
@@ -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);
+}