summaryrefslogtreecommitdiffstats
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
commit54a35af24eafe969f6b7acd3eb923ffa75bfb0ab (patch)
tree7c863df45c95f067bc73be88c8c3e15ddf0741bb /mansearch.c
parent8281d16ab8523b1a8236af7e4319deff2c05090b (diff)
downloadmandoc-54a35af24eafe969f6b7acd3eb923ffa75bfb0ab.tar.gz
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mansearch.c b/mansearch.c
index 48edb2f5..6db43e4e 100644
--- a/mansearch.c
+++ b/mansearch.c
@@ -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 }
};