diff options
author | 2011-11-23 09:55:28 +0000 | |
---|---|---|
committer | 2011-11-23 09:55:28 +0000 | |
commit | 4ca47c10dfff73e3dd44a44f4fa39d8228a71d23 (patch) | |
tree | 7a1473aada7e6f7f36d08a8c7d1d280e67e2bf5b /apropos_db.h | |
parent | 62dc4f949b755b4b88b3f476e7da3ae0827618a6 (diff) | |
download | mandoc-4ca47c10dfff73e3dd44a44f4fa39d8228a71d23.tar.gz mandoc-4ca47c10dfff73e3dd44a44f4fa39d8228a71d23.tar.zst mandoc-4ca47c10dfff73e3dd44a44f4fa39d8228a71d23.zip |
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.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 <kristaps@bsd.lv> * @@ -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 { |