diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-12-28 17:34:18 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-12-28 17:34:18 +0000 |
commit | d7c46d2d16226010fc23d4fc28e1515a70a52ed3 (patch) | |
tree | daef3e4a96ce67b1d9d64938fca56436df268077 /mandoc.h | |
parent | e3f5b4421b6d2e53c29f596fe31bbca8f1b4ca0c (diff) | |
download | mandoc-d7c46d2d16226010fc23d4fc28e1515a70a52ed3.tar.gz |
Make the second, section number argument of .Xr mandatory.
In fact, we have been requiring it for many years.
The only reason to not warn when it was missing
was excessive traditionalism - it was optional in 4.4BSD.
Diffstat (limited to 'mandoc.h')
-rw-r--r-- | mandoc.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -107,6 +107,7 @@ enum mandocerr { MANDOCERR_BF_BADFONT, /* unknown font type, using \fR: Bf font */ MANDOCERR_PF_SKIP, /* nothing follows prefix: Pf arg */ MANDOCERR_RS_EMPTY, /* empty reference block: Rs */ + MANDOCERR_XR_NOSEC, /* missing section argument: Xr arg */ MANDOCERR_ARG_STD, /* missing -std argument, adding it: macro */ MANDOCERR_OP_EMPTY, /* missing option string, using "": OP */ MANDOCERR_UR_NOHEAD, /* missing resource identifier, using "": UR */ |