summaryrefslogtreecommitdiffstats
path: root/mansearch.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-07-12 14:00:25 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-07-12 14:00:25 +0000
commitce5c020a435c0ba3027ec852dc8d269ab20310a8 (patch)
tree9fec9494bd3b0e0f3680c9d53782a660d16f83cb /mansearch.h
parentb095d6cfaf0694a2116175efafe4c5c4cbb938ef (diff)
downloadmandoc-ce5c020a435c0ba3027ec852dc8d269ab20310a8.tar.gz
Fix whatis(1) to correctly match words instead of any substrings.
While here, also provide an internal mode (MANSEARCH_MAN) to match complete names, to be used by man.cgi(8).
Diffstat (limited to 'mansearch.h')
-rw-r--r--mansearch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mansearch.h b/mansearch.h
index 894c8476..aa625108 100644
--- a/mansearch.h
+++ b/mansearch.h
@@ -82,7 +82,8 @@ struct mansearch {
const char *sec; /* mansection/NULL */
uint64_t deftype; /* type if no key */
int flags;
-#define MANSEARCH_WHATIS 0x01 /* whatis mode: equality, no key */
+#define MANSEARCH_WHATIS 0x01 /* whatis(1) mode: whole words, no keys */
+#define MANSEARCH_MAN 0x02 /* man(1) mode: string equality, no keys */
};
int mansearch_setup(int);