summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/manpath.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2017-02-10 15:44:31 +0000
committerschwarze <schwarze@openbsd.org>2017-02-10 15:44:31 +0000
commit385121c9aace893fba9e430c2056b05ea6e62a37 (patch)
treec6c1a580ad31a57c480f01cdf35299c1ef35dc58 /usr.bin/mandoc/manpath.c
parentAdd not delete the event if more to write. (diff)
downloadwireguard-openbsd-385121c9aace893fba9e430c2056b05ea6e62a37.tar.xz
wireguard-openbsd-385121c9aace893fba9e430c2056b05ea6e62a37.zip
In -Ttree output mode, show the BROKEN node flag and
provide a -Onoval output option to show the unvalidated tree.
Diffstat (limited to 'usr.bin/mandoc/manpath.c')
-rw-r--r--usr.bin/mandoc/manpath.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/mandoc/manpath.c b/usr.bin/mandoc/manpath.c
index 718f8d945b9..aae0b75e30b 100644
--- a/usr.bin/mandoc/manpath.c
+++ b/usr.bin/mandoc/manpath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: manpath.c,v 1.19 2017/01/27 13:47:17 schwarze Exp $ */
+/* $OpenBSD: manpath.c,v 1.20 2017/02/10 15:44:31 schwarze Exp $ */
/*
* Copyright (c) 2011, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -225,7 +225,7 @@ manconf_output(struct manoutput *conf, const char *cp, int fromfile)
{
const char *const toks[] = {
"includes", "man", "paper", "style",
- "indent", "width", "fragment", "mdoc"
+ "indent", "width", "fragment", "mdoc", "noval"
};
const char *errstr;
@@ -309,6 +309,9 @@ manconf_output(struct manoutput *conf, const char *cp, int fromfile)
case 7:
conf->mdoc = 1;
return 0;
+ case 8:
+ conf->noval = 1;
+ return 0;
default:
if (fromfile)
warnx("-O %s: Bad argument", cp);