diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-18 01:15:21 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-11-18 01:15:21 +0000 |
commit | 8a65bfe6ed145882b88249a27be64bb4539c8a0a (patch) | |
tree | f5d4340c45c0a473ba99151d5fec27ee75dfc17b /mansearch.h | |
parent | a6c982532bfd28e9dee86e99b8f6c5102300c294 (diff) | |
download | mandoc-8a65bfe6ed145882b88249a27be64bb4539c8a0a.tar.gz |
In man(1) mode, prefer file name matches over .Dt name matches over
first .Nm entries over other NAME .Nm entries over SYNOPSIS .Nm entries.
For example, this makes sure "man ypbind" does not return yp(8).
Re-run "makewhatis" to profit from this change.
Diffstat (limited to 'mansearch.h')
-rw-r--r-- | mansearch.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mansearch.h b/mansearch.h index 44b6858a..2c308a91 100644 --- a/mansearch.h +++ b/mansearch.h @@ -62,10 +62,10 @@ #define TYPE_Nd 0x0000008000000000ULL #define NAME_SYN 0x0000004000000001ULL -#define NAME_FILE 0x0000004000000002ULL -#define NAME_TITLE 0x000000400000000cULL -#define NAME_FIRST 0x0000004000000008ULL -#define NAME_HEAD 0x0000004000000010ULL +#define NAME_FIRST 0x0000004000000004ULL +#define NAME_TITLE 0x0000004000000006ULL +#define NAME_HEAD 0x0000004000000008ULL +#define NAME_FILE 0x0000004000000010ULL #define NAME_MASK 0x000000000000001fULL #define FORM_CAT 0 /* manual page is preformatted */ @@ -85,6 +85,7 @@ struct manpage { char *names; /* a list of names with sections */ char *output; /* user-defined additional output */ size_t ipath; /* number of the manpath */ + uint64_t bits; /* name type mask */ int sec; /* section number, 10 means invalid */ int form; /* 0 == catpage */ }; |