From 95356d6189f5e5d41011a7cb60176f147e1fff7d Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 17 May 2010 22:11:42 +0000 Subject: Enable the unified error/warning enumeration in mandoc.h that's stringified in main.c. Allow `An' to handle an argument and child (with a warning). Allow `Rv' and `Ex' to work without a prior `Nm' as groff does (with a warning). Allow inconsistent column syntax to only raise a warning. --- man.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'man.h') diff --git a/man.h b/man.h index a7822585..c6976f3a 100644 --- a/man.h +++ b/man.h @@ -1,4 +1,4 @@ -/* $Id: man.h,v 1.34 2010/05/17 10:50:32 joerg Exp $ */ +/* $Id: man.h,v 1.35 2010/05/17 22:11:42 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -100,17 +100,12 @@ struct man_node { extern const char *const *man_macronames; -struct man_cb { - int (*man_warn)(void *, int, int, const char *); - int (*man_err)(void *, int, int, const char *); -}; - __BEGIN_DECLS struct man; void man_free(struct man *); -struct man *man_alloc(void *, int, const struct man_cb *); +struct man *man_alloc(void *, int, mandocmsg); void man_reset(struct man *); int man_parseln(struct man *, int, char *, int); int man_endparse(struct man *); -- cgit v1.2.3