From 7e769f8c4092b9538a497f0846a9165759b1fee2 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 21 Jan 2001 17:59:33 +0000 Subject: [PATCH] Created a header which will contain description of all data structures used in the indices. For now, there are word categories. --- lib/index.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/index.h diff --git a/lib/index.h b/lib/index.h new file mode 100644 index 00000000..1f3d1951 --- /dev/null +++ b/lib/index.h @@ -0,0 +1,22 @@ +/* + * Sherlock Gatherer: Data structures used in indices + * + * (c) 2001 Martin Mares + */ + +/* Words */ + +#define MAX_WORD_LEN 64 + +/* Word types */ + +enum word_type { + WT_TEXT, /* Ordinary text */ + WT_EMPH, /* Emphasized text */ + WT_TITLE, /* Document title */ + WT_SMALL_HEADING, /* Heading */ + WT_BIG_HEADING, /* Larger heading */ + WT_KEYWORD, /* Explicitly marked keyword */ + WT_META, /* Various meta-information */ + WT_ALT /* Alternate texts for graphical elements */ +}; -- 2.39.2