From 4ca47c10dfff73e3dd44a44f4fa39d8228a71d23 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 23 Nov 2011 09:55:28 +0000 Subject: Let apropos_db.h export the volume of manpages for a parsed record. This is necessary since an array of records can have duplicate record numbers in different mandoc.index files. The volume [right now] is just the index of the parsed mandoc.index in the manpaths. This is sensible because the order of the manpath is significant (it's the order of duplicate-named manuals displayed by man(1)) and is thus not likely to change. --- apropos_db.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apropos_db.h') diff --git a/apropos_db.h b/apropos_db.h index ce6d96f9..b5744aff 100644 --- a/apropos_db.h +++ b/apropos_db.h @@ -1,4 +1,4 @@ -/* $Id: apropos_db.h,v 1.6 2011/11/20 15:43:14 kristaps Exp $ */ +/* $Id: apropos_db.h,v 1.7 2011/11/23 09:55:28 kristaps Exp $ */ /* * Copyright (c) 2011 Kristaps Dzonsons * @@ -24,6 +24,11 @@ struct res { char *arch; /* arch (or empty string) */ char *desc; /* description (from Nd) */ unsigned int rec; /* record in index */ + /* + * The index volume. This indexes into the array of directories + * searched for manual page databases. + */ + unsigned int volume; }; struct opts { -- cgit v1.2.3-56-ge451