aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libman.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-28 14:42:27 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-28 14:42:27 +0000
commit6d601f57d01308c8dcd7d348a05eaf33f9f1b9ce (patch)
tree085c053e6a6fb2e3d0413f31ef56ea03bfbc9772 /libman.h
parentf39353f2335ef79f686c763d3cc3777bf474dacc (diff)
downloadmandoc-6d601f57d01308c8dcd7d348a05eaf33f9f1b9ce.tar.gz
mandoc-6d601f57d01308c8dcd7d348a05eaf33f9f1b9ce.tar.zst
mandoc-6d601f57d01308c8dcd7d348a05eaf33f9f1b9ce.zip
mdoc(7) already uses the mandoc(1) -Ios argument in the footer line
when .Os has no argument, so do the same for man(7) when .TH has less than four arguments; there is no reason to treat both differently. Issue found following a question from Thomas Klausner <wiz at NetBSD>.
Diffstat (limited to 'libman.h')
-rw-r--r--libman.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libman.h b/libman.h
index b26c2b60..8d115b3a 100644
--- a/libman.h
+++ b/libman.h
@@ -1,4 +1,4 @@
-/* $Id: libman.h,v 1.66 2014/12/01 04:05:31 schwarze Exp $ */
+/* $Id: libman.h,v 1.67 2014/12/28 14:42:27 schwarze Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -23,6 +23,7 @@ enum man_next {
struct man {
struct mparse *parse; /* parse pointer */
+ const char *defos; /* default OS argument for .TH */
int quick; /* abort parse early */
int flags; /* parse flags */
#define MAN_ELINE (1 << 1) /* Next-line element scope. */