diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-01-05 00:29:50 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-01-05 00:29:50 +0000 |
commit | 79268e3a084af5e0e4528519eac7f1bde3daa77c (patch) | |
tree | 72c34b57856c9f9d914ef3e31d92fea2195e53af /usr.bin/mandoc/mansearch.c | |
parent | 3b65d67ae551e60f90b4aac03e45c9551cecbd0a (diff) |
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 'usr.bin/mandoc/mansearch.c')
-rw-r--r-- | usr.bin/mandoc/mansearch.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/mansearch.c b/usr.bin/mandoc/mansearch.c index 233dca926e7..e6cb010a149 100644 --- a/usr.bin/mandoc/mansearch.c +++ b/usr.bin/mandoc/mansearch.c @@ -1,4 +1,4 @@ -/* $Id: mansearch.c,v 1.4 2014/01/04 23:42:32 schwarze Exp $ */ +/* $Id: mansearch.c,v 1.5 2014/01/05 00:29:49 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2013, 2014 Ingo Schwarze <schwarze@openbsd.org> @@ -112,6 +112,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 } }; |