diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 12:59:17 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 12:59:17 +0000 |
commit | c80b8c034f0e42db26a04a17527b0b7e3dc6512b (patch) | |
tree | 7a146488e062534e63eb8c284052e30e2d869cd6 /man.3 | |
parent | 625153bf5457ded8b8946e7f0f831993b94dd863 (diff) | |
download | mandoc-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.3 | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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 |