summaryrefslogtreecommitdiffstats
path: root/mandoc.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-03-20 16:05:21 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-03-20 16:05:21 +0000
commit002654087a2649b42224713c7386f9c9d3b71435 (patch)
tree0deca47fa43559ea06eeb65f1dc893083709506d /mandoc.h
parent80339b751a1833d9bbbf9856e7f48f56d91ba1d3 (diff)
downloadmandoc-002654087a2649b42224713c7386f9c9d3b71435.tar.gz
Let read.c worry about the currently-open file instead of having this
information duplicated in main.c. For the time being, remove evt_close and evt_open, as the only known mparse interface (main.c) doesn't need them.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/mandoc.h b/mandoc.h
index 9ebc0c8d..dceb0c32 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -341,8 +341,6 @@ enum mparset {
typedef void (*mandocmsg)(enum mandocerr, enum mandoclevel,
const char *, int, int, const char *);
-typedef int (*mevt_open)(void *, const char *);
-typedef void (*mevt_close)(void *, const char *);
struct mparse;
struct mdoc;
@@ -352,8 +350,7 @@ __BEGIN_DECLS
void mparse_free(struct mparse *);
void mparse_reset(struct mparse *);
-struct mparse *mparse_alloc(enum mparset, mevt_open,
- mevt_close,
+struct mparse *mparse_alloc(enum mparset,
enum mandoclevel, mandocmsg, void *);
enum mandoclevel mparse_readfd(struct mparse *, int, const char *);
void mparse_result(struct mparse *, struct mdoc **, struct man **);