aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2021-06-02 18:28:19 +0000
committerIngo Schwarze <schwarze@openbsd.org>2021-06-02 18:28:19 +0000
commit827a22bf89a1e97e8bbe3ae764ac62a81c2d35d8 (patch)
tree9a6e0cb6c0af9bc82a7c7b97c2ae28aba7837fe5 /mandoc.h
parentf888b17abe81be3175a5a71acf179f253f5f4b52 (diff)
downloadmandoc-827a22bf89a1e97e8bbe3ae764ac62a81c2d35d8.tar.gz
mandoc-827a22bf89a1e97e8bbe3ae764ac62a81c2d35d8.tar.zst
mandoc-827a22bf89a1e97e8bbe3ae764ac62a81c2d35d8.zip
In -W style mode, check .Xr links along the full manpath because
that is more useful for validating manuals of non-base software. Nothing changes in -W all mode: by default for -T lint, we still assume we want to check base system conventions, including usually not wanting to link to non-base manual pages. The use case, a partial idea how to handle it, and a preliminary patch was originally presented by kn@, then refined by me. Final patch tested and OK'ed by kn@.
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mandoc.h b/mandoc.h
index 2acb8e51..4d80b6b5 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.269 2020/09/01 18:25:27 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.270 2021/06/02 18:28:19 schwarze Exp $ */
/*
* Copyright (c) 2012-2020 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -54,7 +54,6 @@ 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 ===== */
@@ -68,6 +67,7 @@ enum mandocerr {
MANDOCERR_BX, /* consider using OS macro: macro */
MANDOCERR_ER_ORDER, /* errnos out of order: Er ... */
MANDOCERR_ER_REP, /* duplicate errno: Er ... */
+ MANDOCERR_XR_BAD, /* referenced manual not found: Xr name sec */
MANDOCERR_DELIM, /* trailing delimiter: macro ... */
MANDOCERR_DELIM_NB, /* no blank before trailing delimiter: macro ... */
MANDOCERR_FI_SKIP, /* fill mode already enabled, skipping: fi */