aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitcde3a32159a80968b274ce1e06c94f2e539e4254 (patch)
treef69823f570c3f41c42964374e163a0d09e996c69 /roff.c
parent6120130ed0e80f6397c99e688829ad06c4415cd6 (diff)
downloadmandoc-cde3a32159a80968b274ce1e06c94f2e539e4254.tar.gz
mandoc-cde3a32159a80968b274ce1e06c94f2e539e4254.tar.zst
mandoc-cde3a32159a80968b274ce1e06c94f2e539e4254.zip
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.c9
1 files changed, 8 insertions, 1 deletions
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 <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);
+}