aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tbl.3
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-13 02:06:07 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-13 02:06:07 +0000
commit8778c0e49080778fd04dc5a3c1aac38addbfa5a4 (patch)
tree3f4e1c54b77a817844378231c2dc4a3aa04e9908 /tbl.3
parentabe535d017ebcf70bf575e3048cb4ea11f75a600 (diff)
downloadmandoc-8778c0e49080778fd04dc5a3c1aac38addbfa5a4.tar.gz
mandoc-8778c0e49080778fd04dc5a3c1aac38addbfa5a4.tar.zst
mandoc-8778c0e49080778fd04dc5a3c1aac38addbfa5a4.zip
Cleanup, no functional change:
Move tbl(7)-specific parser internals out of libroff.h. Move some tbl(7)-internal processing from roff.c to tbl.c.
Diffstat (limited to 'tbl.3')
-rw-r--r--tbl.323
1 files changed, 12 insertions, 11 deletions
diff --git a/tbl.3 b/tbl.3
index 10e18fc6..047ee3c0 100644
--- a/tbl.3
+++ b/tbl.3
@@ -1,6 +1,6 @@
-.\" $Id: tbl.3,v 1.4 2018/12/12 21:54:35 schwarze Exp $
+.\" $Id: tbl.3,v 1.5 2018/12/13 02:06:07 schwarze Exp $
.\"
-.\" Copyright (c) 2013 Ingo Schwarze <schwarze@openbsd.org>
+.\" Copyright (c) 2013, 2015, 2018 Ingo Schwarze <schwarze@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: December 12 2018 $
+.Dd $Mdocdate: December 13 2018 $
.Dt TBL 3
.Os
.Sh NAME
@@ -26,10 +26,9 @@
.Nm tbl_free
.Nd roff table parser library for mandoc
.Sh SYNOPSIS
-.In mandoc.h
+.In sys/types.h
.In tbl.h
-.In libmandoc.h
-.In libroff.h
+.In tbl_parse.h
.Ft struct tbl_node *
.Fo tbl_alloc
.Fa "int pos"
@@ -68,15 +67,15 @@ utility and not designed for stand-alone use.
The present manual is intended as a reference for developers working on
.Xr mandoc 1 .
.Ss Data structures
-Unless otherwise noted, all of the following data structures are defined in
-.In mandoc.h
+Unless otherwise noted, all of the following data structures are declared in
+.In tbl.h
and are deleted in
.Fn tbl_free .
.Bl -tag -width Ds
.It Vt struct tbl_node
This structure describes a complete table.
-It is defined in
-.In libroff.h ,
+It is declared in
+.In tbl_int.h ,
created in
.Fn tbl_alloc ,
and stored in the members
@@ -227,7 +226,7 @@ member is not
.Ss Interface functions
The following functions are implemented in
.Pa tbl.c ,
-and all callers in
+and all callers are in
.Pa roff.c .
.Bl -tag -width Ds
.It Fn tbl_alloc
@@ -280,6 +279,8 @@ and
.Fn roff_reset .
.El
.Ss Private functions
+The following functions are declared in
+.In tbl_int.h .
.Bl -tag -width Ds
.It Ft int Fn tbl_options "struct tbl_node *tbl" "int ln" "const char *p"
Parses the options line into