From: Martin Mares Date: Sun, 21 Jan 2001 17:59:33 +0000 (+0000) Subject: Created a header which will contain description of all data structures X-Git-Tag: holmes-import~1578 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7e769f8c4092b9538a497f0846a9165759b1fee2;p=libucw.git Created a header which will contain description of all data structures used in the indices. For now, there are word categories. --- 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 */ +};