diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-31 18:19:43 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-12-31 18:19:43 +0000 |
commit | cde3a32159a80968b274ce1e06c94f2e539e4254 (patch) | |
tree | f69823f570c3f41c42964374e163a0d09e996c69 /tbl.c | |
parent | 6120130ed0e80f6397c99e688829ad06c4415cd6 (diff) | |
download | mandoc-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 'tbl.c')
-rw-r--r-- | tbl.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 <kristaps@bsd.lv> * @@ -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); +} |