aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc_headers.3
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-14 01:18:25 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-14 01:18:25 +0000
commit437eb74af037fff6e93890f2a4f81426d7142fab (patch)
tree9259f758a86bc2b941f66a06231c4ee965bd23c0 /mandoc_headers.3
parent92f8786f6ad5b622da1afc6b267a40001731571b (diff)
downloadmandoc-437eb74af037fff6e93890f2a4f81426d7142fab.tar.gz
mandoc-437eb74af037fff6e93890f2a4f81426d7142fab.tar.zst
mandoc-437eb74af037fff6e93890f2a4f81426d7142fab.zip
Major cleanup; may imply minor changes in edge cases of error reporting.
Finally, drop support for the run-time configurable mandocmsg() callback. It was over-engineered from the start, never used for anything in a decade, and repeatedly caused maintenance headaches. Consolidate reporting infrastructure into two files, mandoc.h and mandoc_msg.c, mopping up the bits and pieces that were scattered around main.c, read.c, mandoc_parse.h, libmandoc.h, the prototypes of four parsing-related functions, and both parser structs.
Diffstat (limited to 'mandoc_headers.3')
-rw-r--r--mandoc_headers.317
1 files changed, 11 insertions, 6 deletions
diff --git a/mandoc_headers.3 b/mandoc_headers.3
index c728a271..66107e0d 100644
--- a/mandoc_headers.3
+++ b/mandoc_headers.3
@@ -1,4 +1,4 @@
-.Dd $Mdocdate: December 13 2018 $
+.Dd $Mdocdate: December 14 2018 $
.Dt MANDOC_HEADERS 3
.Os
.Sh NAME
@@ -90,18 +90,23 @@ can be used everywhere.
Requires
.In sys/types.h
for
-.Vt size_t .
+.Vt size_t
+and
+.In stdio.h
+for
+.Vt FILE .
.Pp
Provides
.Vt enum mandoc_esc ,
.Vt enum mandocerr ,
.Vt enum mandoclevel ,
-the function prototype typedef
-.Fn mandocmsg ,
the function
.Xr mandoc_escape 3 ,
-and the functions described in
-.Xr mchars_alloc 3 .
+the functions described in
+.Xr mchars_alloc 3 ,
+and the
+.Fn mandoc_msg*
+functions.
.It Qq Pa roff.h
Common data types for all syntax trees and related functions;
can be used everywhere.