diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-17 22:11:42 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-05-17 22:11:42 +0000 |
commit | 95356d6189f5e5d41011a7cb60176f147e1fff7d (patch) | |
tree | c923ce026d6b8f420d203f151868c8b858e4501d /mdoc.h | |
parent | 114426748445942cb51394e59f2c62ad79bd974c (diff) | |
download | mandoc-95356d6189f5e5d41011a7cb60176f147e1fff7d.tar.gz mandoc-95356d6189f5e5d41011a7cb60176f147e1fff7d.tar.zst mandoc-95356d6189f5e5d41011a7cb60176f147e1fff7d.zip |
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.
Diffstat (limited to 'mdoc.h')
-rw-r--r-- | mdoc.h | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -1,4 +1,4 @@ -/* $Id: mdoc.h,v 1.80 2010/05/16 10:59:36 kristaps Exp $ */ +/* $Id: mdoc.h,v 1.81 2010/05/17 22:11:42 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -278,13 +278,6 @@ struct mdoc_node { #define MDOC_IGN_ESCAPE (1 << 1) /* Ignore bad escape sequences. */ #define MDOC_IGN_MACRO (1 << 2) /* Ignore unknown macros. */ -/* Call-backs for parse messages. */ - -struct mdoc_cb { - int (*mdoc_err)(void *, int, int, const char *); - int (*mdoc_warn)(void *, int, int, const char *); -}; - /* See mdoc.3 for documentation. */ extern const char *const *mdoc_macronames; @@ -297,7 +290,7 @@ struct mdoc; /* See mdoc.3 for documentation. */ void mdoc_free(struct mdoc *); -struct mdoc *mdoc_alloc(void *, int, const struct mdoc_cb *); +struct mdoc *mdoc_alloc(void *, int, mandocmsg); void mdoc_reset(struct mdoc *); int mdoc_parseln(struct mdoc *, int, char *, int); const struct mdoc_node *mdoc_node(const struct mdoc *); |