aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/man.3
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 12:59:17 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 12:59:17 +0000
commitc80b8c034f0e42db26a04a17527b0b7e3dc6512b (patch)
tree7a146488e062534e63eb8c284052e30e2d869cd6 /man.3
parent625153bf5457ded8b8946e7f0f831993b94dd863 (diff)
downloadmandoc-c80b8c034f0e42db26a04a17527b0b7e3dc6512b.tar.gz
mandoc-c80b8c034f0e42db26a04a17527b0b7e3dc6512b.tar.zst
mandoc-c80b8c034f0e42db26a04a17527b0b7e3dc6512b.zip
Add -man support for tables. Like -mdoc, this consists of an
external-facing function man_addspan() (this required shuffling around the descope routine) and hooks elsewhere. Also fixed mdoc.c's post-validation of tables.
Diffstat (limited to 'man.3')
-rw-r--r--man.312
1 files changed, 10 insertions, 2 deletions
diff --git a/man.3 b/man.3
index 826c6bda..e72b5297 100644
--- a/man.3
+++ b/man.3
@@ -1,4 +1,4 @@
-.\" $Id: man.3,v 1.27 2010/12/17 11:41:45 kristaps Exp $
+.\" $Id: man.3,v 1.28 2011/01/01 12:59:17 kristaps Exp $
.\"
.\" Copyright (c) 2009-2010 Kristaps Dzonsons <kristaps@bsd.lv>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: December 17 2010 $
+.Dd $Mdocdate: January 1 2011 $
.Dt MAN 3
.Os
.Sh NAME
@@ -31,6 +31,11 @@
.In mandoc.h
.In man.h
.Vt extern const char * const * man_macronames;
+.Ft int
+.Fo man_addspan
+.Fa "struct man *man"
+.Fa "const struct tbl_span *span"
+.Fc
.Ft "struct man *"
.Fo man_alloc
.Fa "struct regset *regs"
@@ -101,6 +106,9 @@ for details.
.El
.Ss Functions
.Bl -ohang
+.It Fn man_addspan
+Add a table span to the parsing stream.
+Returns 0 on failure, 1 on success.
.It Fn man_alloc
Allocates a parsing structure.
The