From 52cb62f9976a2e63c610790cea3ecc1645534c70 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 20 Mar 2011 16:05:21 +0000 Subject: 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. --- mandoc.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'mandoc.h') diff --git a/mandoc.h b/mandoc.h index e5c867a4..55d38c81 100644 --- a/mandoc.h +++ b/mandoc.h @@ -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 * @@ -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 **); -- cgit v1.2.3-56-ge451