summaryrefslogtreecommitdiffstats
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
commit131de1ee113c08ea304f934c38488baa917375f6 (patch)
tree5f9c4e393a821b0b372d6dcc62bd76de3c8850da /man.3
parent98371213a082f1d2d7f5faac716b9818680d3140 (diff)
downloadmandoc-131de1ee113c08ea304f934c38488baa917375f6.tar.gz
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.38
1 files changed, 8 insertions, 0 deletions
diff --git a/man.3 b/man.3
index f640f445..4d327b62 100644
--- a/man.3
+++ b/man.3
@@ -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