]> git.cameronkatri.com Git - mandoc.git/commit
Major cleanup; may imply minor changes in edge cases of error reporting.
authorIngo Schwarze <schwarze@openbsd.org>
Fri, 14 Dec 2018 01:18:25 +0000 (01:18 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Fri, 14 Dec 2018 01:18:25 +0000 (01:18 +0000)
commit437eb74af037fff6e93890f2a4f81426d7142fab
tree9259f758a86bc2b941f66a06231c4ee965bd23c0
parent92f8786f6ad5b622da1afc6b267a40001731571b
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.
24 files changed:
Makefile
Makefile.depend
cgi.c
chars.c
demandoc.c
libmandoc.h
main.c
man_macro.c
man_validate.c
mandoc.3
mandoc.h
mandoc_headers.3
mandoc_msg.c [new file with mode: 0644]
mandoc_parse.h
mandocd.c
mandocdb.c
mdoc_state.c
msec.c
read.c
roff_term.c
roff_validate.c
st.c
tbl_data.c
tbl_layout.c