aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandocd.c
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 /mandocd.c
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 'mandocd.c')
-rw-r--r--mandocd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mandocd.c b/mandocd.c
index 3f055a50..130849b8 100644
--- a/mandocd.c
+++ b/mandocd.c
@@ -1,4 +1,4 @@
-/* $Id: mandocd.c,v 1.7 2018/12/13 11:55:46 schwarze Exp $ */
+/* $Id: mandocd.c,v 1.8 2018/12/14 01:18:26 schwarze Exp $ */
/*
* Copyright (c) 2017 Michael Stapelberg <stapelberg@debian.org>
* Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -172,7 +172,7 @@ main(int argc, char *argv[])
mchars_alloc();
parser = mparse_alloc(MPARSE_SO | MPARSE_UTF8 | MPARSE_LATIN1,
- MANDOCERR_MAX, NULL, MANDOC_OS_OTHER, defos);
+ MANDOC_OS_OTHER, defos);
memset(&options, 0, sizeof(options));
switch (outtype) {