aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mansearch.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-01-05 00:29:54 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-01-05 00:29:54 +0000
commit42e809e6f89c835d55a7d3f2046e28b6a227122a (patch)
tree5270ab617b11463346a9b75a3f4d3eaa334789b5 /mansearch.h
parent0a2a9ae852ecb58b204286332fb79bf1c2fdc161 (diff)
downloadmandoc-42e809e6f89c835d55a7d3f2046e28b6a227122a.tar.gz
mandoc-42e809e6f89c835d55a7d3f2046e28b6a227122a.tar.zst
mandoc-42e809e6f89c835d55a7d3f2046e28b6a227122a.zip
Put section and architecture info into the keys table,
in preparation for removing them from the mpages table, aiming for cleaner and more uniform interfaces. Database growth is below 4%, part of which will be reclaimed. As a bonus, this allows searches like: ./obj/apropos An=kettenis -a arch=ppc ./obj/apropos An=kettenis -a sec~[^4]
Diffstat (limited to 'mansearch.h')
-rw-r--r--mansearch.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mansearch.h b/mansearch.h
index 405826f0..0af83c60 100644
--- a/mansearch.h
+++ b/mansearch.h
@@ -1,4 +1,4 @@
-/* $Id: mansearch.h,v 1.6 2013/12/31 03:41:14 schwarze Exp $ */
+/* $Id: mansearch.h,v 1.7 2014/01/05 00:29:54 schwarze Exp $ */
/*
* Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013 Ingo Schwarze <schwarze@openbsd.org>
@@ -58,6 +58,8 @@
#define TYPE_Va 0x0000000800000000ULL
#define TYPE_Vt 0x0000001000000000ULL
#define TYPE_Xr 0x0000002000000000ULL
+#define TYPE_sec 0x0000004000000000ULL
+#define TYPE_arch 0x0000008000000000ULL
__BEGIN_DECLS