diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 15:45:18 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-01 15:45:18 +0000 |
commit | 11a4a49536978db711f68cc010fec41f76c2f970 (patch) | |
tree | 898f1e145588b487ca875c4fd3df9e132eddb1ff /roff.3 | |
parent | 31916df7856f6ea8b704f200c8a68d72e536fd32 (diff) | |
download | mandoc-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.3 | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |