diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-09-03 18:09:14 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-09-03 18:09:14 +0000 |
commit | 248398820acb6a81f0d92b7a33dc1e449dda483b (patch) | |
tree | 93066814e716198d92cc1458fab4a2eca07bea9a /mansearch.h | |
parent | 02046d75d7ec4c27ec31d04e15c9d9fe018a01ab (diff) | |
download | mandoc-248398820acb6a81f0d92b7a33dc1e449dda483b.tar.gz mandoc-248398820acb6a81f0d92b7a33dc1e449dda483b.tar.zst mandoc-248398820acb6a81f0d92b7a33dc1e449dda483b.zip |
If a manual page is installed gzip(1)ed, let makewhatis(8) take
note in mandoc.db(5), such that man(1) -w and apropos(1) -w can
report the correct filename.
This is a prerequisite for letting apropos -a and man support
gzip'ed manuals in the future, which doesn't work yet.
Diffstat (limited to 'mansearch.h')
-rw-r--r-- | mansearch.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mansearch.h b/mansearch.h index 6cc6f410..0aab4e76 100644 --- a/mansearch.h +++ b/mansearch.h @@ -1,4 +1,4 @@ -/* $Id: mansearch.h,v 1.17 2014/09/01 22:45:53 schwarze Exp $ */ +/* $Id: mansearch.h,v 1.18 2014/09/03 18:09:14 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -68,6 +68,11 @@ #define NAME_HEAD 0x0000004000000010ULL #define NAME_MASK 0x000000000000001fULL +#define FORM_CAT 0 /* manual page is preformatted */ +#define FORM_SRC 1 /* format is mdoc(7) or man(7) */ +#define FORM_GZ 2 /* compressed with gzip(1) */ +#define FORM_NONE 4 /* format is unknown */ + enum argmode { ARG_FILE = 0, ARG_NAME, |