diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-16 12:06:35 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-12-16 12:06:35 +0000 |
commit | b38a0e9bb59f9ee62120de914198368fdba24c0c (patch) | |
tree | 24c19eb546e5b07faed09e9802c8811df81176a3 /apropos_db.h | |
parent | a4ad6737e73b3efeb9ad854f1f4323ba3a43833a (diff) | |
download | mandoc-b38a0e9bb59f9ee62120de914198368fdba24c0c.tar.gz |
Make the stored "cat"/"mdoc"/"man" strings just be c/d/a single-character
bytes. This cuts down a little in index size and allows for cleaner
extraction of information.
Diffstat (limited to 'apropos_db.h')
-rw-r--r-- | apropos_db.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/apropos_db.h b/apropos_db.h index 1accaa1f..9af530a6 100644 --- a/apropos_db.h +++ b/apropos_db.h @@ -17,8 +17,14 @@ #ifndef APROPOS_H #define APROPOS_H +enum restype { + RESTYPE_MAN, /* man(7) file */ + RESTYPE_MDOC, /* mdoc(7) file */ + RESTYPE_CAT /* pre-formatted file */ +}; + struct res { - char *type; /* file type: mdoc, man or cat */ + enum restype type; /* input file type */ char *file; /* file in file-system */ char *cat; /* category (3p, 3, etc.) */ char *title; /* title (FOO, etc.) */ |