summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mandoc.h
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2017-07-01 09:47:23 +0000
committerschwarze <schwarze@openbsd.org>2017-07-01 09:47:23 +0000
commit19b6bef7d74b1a8576cd85e21cdc4dd35fd4528d (patch)
treef55c6d4357933c7adccf72d65a6653118a59c20c /usr.bin/mandoc/mandoc.h
parentDon't write over right border. (diff)
downloadwireguard-openbsd-19b6bef7d74b1a8576cd85e21cdc4dd35fd4528d.tar.xz
wireguard-openbsd-19b6bef7d74b1a8576cd85e21cdc4dd35fd4528d.zip
Basic reporting of .Xrs to manual pages that don't exist
in the base system, inspired by mdoclint(1). We are able to do this because (1) the -mdoc parser, the -Tlint validator, and the man(1) manual page lookup code are all in the same program and (2) the mandoc.db(5) database format allows fast lookup. Feedback from, previous versions tested by, and OK jmc@. A few features will be added to this in the tree, step by step.
Diffstat (limited to 'usr.bin/mandoc/mandoc.h')
-rw-r--r--usr.bin/mandoc/mandoc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mandoc.h b/usr.bin/mandoc/mandoc.h
index 89ecbe9bb90..72c7fe7e83a 100644
--- a/usr.bin/mandoc/mandoc.h
+++ b/usr.bin/mandoc/mandoc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mandoc.h,v 1.179 2017/06/29 15:21:46 schwarze Exp $ */
+/* $OpenBSD: mandoc.h,v 1.180 2017/07/01 09:47:23 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -51,6 +51,7 @@ enum mandocerr {
MANDOCERR_ARCH_BAD, /* unknown architecture: Dt ... arch */
MANDOCERR_OS_ARG, /* operating system explicitly specified: Os ... */
MANDOCERR_RCS_MISSING, /* RCS id missing */
+ MANDOCERR_XR_BAD, /* referenced manual not found: Xr name sec */
MANDOCERR_STYLE, /* ===== start of style suggestions ===== */