diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-14 01:18:25 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-12-14 01:18:25 +0000 |
commit | f23ef2791d6fed38e2418e7816d449e955da3808 (patch) | |
tree | a0f0c7d4784735ec3a345d1726ce53d8315ba7d8 /mandoc_parse.h | |
parent | 89b87d6d86473296fb35daf3da277607a4811967 (diff) | |
download | mandoc-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 'mandoc_parse.h')
-rw-r--r-- | mandoc_parse.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mandoc_parse.h b/mandoc_parse.h index 05ac3cbb..130a59c6 100644 --- a/mandoc_parse.h +++ b/mandoc_parse.h @@ -33,17 +33,13 @@ struct mparse; struct roff_man; -struct mparse *mparse_alloc(int, enum mandocerr, mandocmsg, - enum mandoc_os, const char *); +struct mparse *mparse_alloc(int, enum mandoc_os, const char *); void mparse_copy(const struct mparse *); void mparse_free(struct mparse *); int mparse_open(struct mparse *, const char *); -enum mandoclevel mparse_readfd(struct mparse *, int, const char *); +void mparse_readfd(struct mparse *, int, const char *); enum mandoclevel mparse_readmem(struct mparse *, void *, size_t, const char *); void mparse_reset(struct mparse *); void mparse_result(struct mparse *, struct roff_man **, char **); -const char *mparse_strerror(enum mandocerr); -const char *mparse_strlevel(enum mandoclevel); -void mparse_updaterc(struct mparse *, enum mandoclevel *); |