summaryrefslogtreecommitdiffstatshomepage
path: root/libman.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-25 15:17:49 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-25 15:17:49 +0000
commitaee6df6eb688c812a34d9a363dda978f06095003 (patch)
treed99bb9b2ce6d25b71e560347d01dc9525953ad4b /libman.h
parente0c48e25273aab3cab4440442865955afff07b02 (diff)
downloadmandoc-aee6df6eb688c812a34d9a363dda978f06095003.tar.gz
mandoc-aee6df6eb688c812a34d9a363dda978f06095003.tar.zst
mandoc-aee6df6eb688c812a34d9a363dda978f06095003.zip
Added man validator, renamed mdoc validator.
Diffstat (limited to 'libman.h')
-rw-r--r--libman.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libman.h b/libman.h
index 4054b22f..67e9994e 100644
--- a/libman.h
+++ b/libman.h
@@ -1,4 +1,4 @@
-/* $Id: libman.h,v 1.3 2009/03/23 15:41:09 kristaps Exp $ */
+/* $Id: libman.h,v 1.4 2009/03/25 15:17:49 kristaps Exp $ */
/*
* Copyright (c) 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -27,6 +27,8 @@ enum man_next {
};
struct man {
+ void *data;
+ struct man_cb cb;
void *htab;
int flags;
#define MAN_HALT (1 << 0)
@@ -48,6 +50,8 @@ int man_macro(struct man *, int,
int man_hash_find(const void *, const char *);
void man_hash_free(void *);
int man_macroend(struct man *);
+int man_vwarn(struct man *, int, int, const char *, ...);
+int man_verr(struct man *, int, int, const char *, ...);
__END_DECLS