summaryrefslogtreecommitdiffstats
path: root/apropos_db.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-11-23 09:55:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-11-23 09:55:28 +0000
commit979ead80f9b5753aaff39dfc69262202f5d1235a (patch)
tree130acbb65999ae478a596530405d1066e017706c /apropos_db.h
parentdd7a7a37962f5fd5a134a98280617bb07028d374 (diff)
downloadmandoc-979ead80f9b5753aaff39dfc69262202f5d1235a.tar.gz
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.
Diffstat (limited to 'apropos_db.h')
-rw-r--r--apropos_db.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/apropos_db.h b/apropos_db.h
index 62a392f3..316d5669 100644
--- a/apropos_db.h
+++ b/apropos_db.h
@@ -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 {