From b38a0e9bb59f9ee62120de914198368fdba24c0c Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 16 Dec 2011 12:06:35 +0000 Subject: 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. --- apropos_db.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apropos_db.h') 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.) */ -- cgit