diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-20 16:05:21 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-03-20 16:05:21 +0000 |
commit | 002654087a2649b42224713c7386f9c9d3b71435 (patch) | |
tree | 0deca47fa43559ea06eeb65f1dc893083709506d /mandoc.h | |
parent | 80339b751a1833d9bbbf9856e7f48f56d91ba1d3 (diff) | |
download | mandoc-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.h | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 **); |