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 | 52cb62f9976a2e63c610790cea3ecc1645534c70 (patch) | |
tree | e203a899f8dd1beb25a1b17facf00acb70c69ef2 /mandoc.h | |
parent | 71ddcd873082a3c68ed2be7b7661075fb09d5849 (diff) | |
download | mandoc-52cb62f9976a2e63c610790cea3ecc1645534c70.tar.gz mandoc-52cb62f9976a2e63c610790cea3ecc1645534c70.tar.zst mandoc-52cb62f9976a2e63c610790cea3ecc1645534c70.zip |
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 | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.63 2011/03/20 16:02:05 kristaps Exp $ */ +/* $Id: mandoc.h,v 1.64 2011/03/20 16:05:21 kristaps Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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 **); |