aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mansearch.c
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.c
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.c')
-rw-r--r--mansearch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mansearch.c b/mansearch.c
index 7fb0a13c..886ceef3 100644
--- a/mansearch.c
+++ b/mansearch.c
@@ -1,4 +1,4 @@
-/* $Id: mansearch.c,v 1.13 2014/01/04 23:43:53 schwarze Exp $ */
+/* $Id: mansearch.c,v 1.14 2014/01/05 00:29:54 schwarze Exp $ */
/*
* Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -120,6 +120,8 @@ static const struct type types[] = {
{ TYPE_Va, "Va" },
{ TYPE_Va, "Vt" },
{ TYPE_Xr, "Xr" },
+ { TYPE_sec, "sec" },
+ { TYPE_arch,"arch" },
{ ~0ULL, "any" },
{ 0ULL, NULL }
};