From 4f08e1a59c1b75a054ad30dd951c0c511f05b28e Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 27 Nov 2011 23:11:37 +0000 Subject: Save the manual type (mdoc, man, or cat) in the index file of the mandoc databases, as suggested by kristaps@. Given the well-structured code, this is surprisingly simple. This changes the mandoc.index database format. Run "sudo mandocdb" to regenerate your databases. --- apropos_db.c | 1 + 1 file changed, 1 insertion(+) (limited to 'apropos_db.c') diff --git a/apropos_db.c b/apropos_db.c index 7a423083..5e473a6b 100644 --- a/apropos_db.c +++ b/apropos_db.c @@ -366,6 +366,7 @@ index_read(const DBT *key, const DBT *val, int index, rec->res.rec = *(recno_t *)key->data; rec->res.volume = index; + INDEX_BREAD(rec->res.type); INDEX_BREAD(rec->res.file); INDEX_BREAD(rec->res.cat); INDEX_BREAD(rec->res.title); -- cgit