summaryrefslogtreecommitdiffstats
path: root/mdoc.3
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-02-09 09:05:52 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-02-09 09:05:52 +0000
commit31585348ea96dc3d531dd9a8fdbea4ad5ce4b927 (patch)
tree5ec5f6dd3a3a8484263747c3ea413fb5e90adf13 /mdoc.3
parent39f12eb291ae2c50f721965715032dae57e1162e (diff)
downloadmandoc-31585348ea96dc3d531dd9a8fdbea4ad5ce4b927.tar.gz
Allow EQN data to be pushed down into libmdoc via mdoc_addeqn(). Only
the adding itself is implemented; equation data is not yet shown.
Diffstat (limited to 'mdoc.3')
-rw-r--r--mdoc.39
1 files changed, 9 insertions, 0 deletions
diff --git a/mdoc.3 b/mdoc.3
index ca71f7b3..fe0b41de 100644
--- a/mdoc.3
+++ b/mdoc.3
@@ -34,6 +34,11 @@
.Vt extern const char * const * mdoc_macronames;
.Vt extern const char * const * mdoc_argnames;
.Ft int
+.Fo mdoc_addeqn
+.Fa "struct mdoc *mdoc"
+.Fa "const struct eqn *eqn"
+.Fc
+.Ft int
.Fo mdoc_addspan
.Fa "struct mdoc *mdoc"
.Fa "const struct tbl_span *span"
@@ -97,6 +102,7 @@ for details.
.El
.Ss Functions
If
+.Fn mdoc_addeqn ,
.Fn mdoc_addspan ,
.Fn mdoc_parseln ,
or
@@ -107,6 +113,9 @@ or
.Fn mdoc_free
will raise an assertion.
.Bl -ohang
+.It Fn mdoc_addeqn
+Add an equation to the parsing stream.
+Returns 0 on failure, 1 on success.
.It Fn mdoc_addspan
Add a table span to the parsing stream.
Returns 0 on failure, 1 on success.