summaryrefslogtreecommitdiffstats
path: root/roff.3
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 15:45:18 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-01 15:45:18 +0000
commit11a4a49536978db711f68cc010fec41f76c2f970 (patch)
tree898f1e145588b487ca875c4fd3df9e132eddb1ff /roff.3
parent31916df7856f6ea8b704f200c8a68d72e536fd32 (diff)
downloadmandoc-11a4a49536978db711f68cc010fec41f76c2f970.tar.gz
Add documentation bits for libroff's new roff_span().
Add bits to remember tbl's invocation point. Add ERROR class message if no data's in the table.
Diffstat (limited to 'roff.3')
-rw-r--r--roff.312
1 files changed, 11 insertions, 1 deletions
diff --git a/roff.3 b/roff.3
index 50ada862..bf67671a 100644
--- a/roff.3
+++ b/roff.3
@@ -23,7 +23,8 @@
.Nm roff_endparse ,
.Nm roff_free ,
.Nm roff_parseln ,
-.Nm roff_reset
+.Nm roff_reset ,
+.Nm roff_span
.Nd roff macro compiler library
.Sh SYNOPSIS
.In mandoc.h
@@ -49,6 +50,8 @@
.Fc
.Ft void
.Fn roff_reset "struct roff *roff"
+.Ft "const struct tbl_span *"
+.Fn roff_span "const struct roff *roff"
.Sh DESCRIPTION
The
.Nm
@@ -139,6 +142,13 @@ Returns 0 on failure, 1 on success.
.It Fn roff_endparse
Signals that the parse is complete.
Returns 0 on failure, 1 on success.
+.It Fn roff_span
+If
+.Fn roff_parseln
+returned
+.Va ROFF_TBL ,
+return the last parsed table row.
+Returns NULL otherwise.
.El
.Sh EXAMPLES
See