CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2018/12/13 18:17:46
Modified files: usr.bin/mandoc : Makefile cgi.c chars.c libmandoc.h main.c man_macro.c man_validate.c mandoc.h mandoc_parse.h mandocdb.c mdoc_state.c msec.c read.c roff_term.c roff_validate.c st.c tbl_data.c tbl_layout.c Added files: usr.bin/mandoc : mandoc_msg.c Log message: 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.