summaryrefslogtreecommitdiffstats
path: root/apropos_db.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-11-27 23:11:37 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-11-27 23:11:37 +0000
commit4f08e1a59c1b75a054ad30dd951c0c511f05b28e (patch)
tree2913d0223d0da6b9bcab83277c86ff36059c9323 /apropos_db.h
parent59061e7ea735427f043254b454956da8bf073e88 (diff)
downloadmandoc-4f08e1a59c1b75a054ad30dd951c0c511f05b28e.tar.gz
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.
Diffstat (limited to 'apropos_db.h')
-rw-r--r--apropos_db.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/apropos_db.h b/apropos_db.h
index 2591d87e..1accaa1f 100644
--- a/apropos_db.h
+++ b/apropos_db.h
@@ -18,6 +18,7 @@
#define APROPOS_H
struct res {
+ char *type; /* file type: mdoc, man or cat */
char *file; /* file in file-system */
char *cat; /* category (3p, 3, etc.) */
char *title; /* title (FOO, etc.) */