summaryrefslogtreecommitdiffstats
path: root/demandoc.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
commitf23ef2791d6fed38e2418e7816d449e955da3808 (patch)
treea0f0c7d4784735ec3a345d1726ce53d8315ba7d8 /demandoc.c
parent89b87d6d86473296fb35daf3da277607a4811967 (diff)
downloadmandoc-f23ef2791d6fed38e2418e7816d449e955da3808.tar.gz
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 'demandoc.c')
-rw-r--r--demandoc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/demandoc.c b/demandoc.c
index 96c7fd15..7ec28bf7 100644
--- a/demandoc.c
+++ b/demandoc.c
@@ -79,8 +79,7 @@ main(int argc, char *argv[])
argv += optind;
mchars_alloc();
- mp = mparse_alloc(MPARSE_SO, MANDOCERR_MAX, NULL,
- MANDOC_OS_OTHER, NULL);
+ mp = mparse_alloc(MPARSE_SO, MANDOC_OS_OTHER, NULL);
assert(mp);
if (argc < 1)