summaryrefslogtreecommitdiffstats
path: root/mdoc.3
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 12:18:37 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 12:18:37 +0000
commite544ee7c50ee6f579859cf0983518ab73f11cac1 (patch)
tree27b769c61f531ca49b70efb6715220e2249a8c35 /mdoc.3
parent1d3c95dfc94730fe58488b00744522e212559f61 (diff)
downloadmandoc-e544ee7c50ee6f579859cf0983518ab73f11cac1.tar.gz
Add table processing structures to -mdoc. This consists of an
external-facing function mdoc_addspan(), then various bits to prohibit printing and scanning (this requires some if's to be converted into switch's).
Diffstat (limited to 'mdoc.3')
-rw-r--r--mdoc.38
1 files changed, 8 insertions, 0 deletions
diff --git a/mdoc.3 b/mdoc.3
index 83ad2f2f..358008d8 100644
--- a/mdoc.3
+++ b/mdoc.3
@@ -33,6 +33,11 @@
.In mdoc.h
.Vt extern const char * const * mdoc_macronames;
.Vt extern const char * const * mdoc_argnames;
+.Ft int
+.Fo mdoc_addspan
+.Fa "struct mdoc *mdoc"
+.Fa "const struct tbl_span *span"
+.Fc
.Ft "struct mdoc *"
.Fo mdoc_alloc
.Fa "struct regset *regs"
@@ -92,6 +97,9 @@ for details.
.El
.Ss Functions
.Bl -ohang
+.It Fn mdoc_addspan
+Add a table span to the parsing stream.
+Returns 0 on failure, 1 on success.
.It Fn mdoc_alloc
Allocates a parsing structure.
The