]> mj.ucw.cz Git - libucw.git/commitdiff
Created a header which will contain description of all data structures
authorMartin Mares <mj@ucw.cz>
Sun, 21 Jan 2001 17:59:33 +0000 (17:59 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 21 Jan 2001 17:59:33 +0000 (17:59 +0000)
used in the indices. For now, there are word categories.

lib/index.h [new file with mode: 0644]

diff --git a/lib/index.h b/lib/index.h
new file mode 100644 (file)
index 0000000..1f3d195
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+ *     Sherlock Gatherer: Data structures used in indices
+ *
+ *     (c) 2001 Martin Mares <mj@ucw.cz>
+ */
+
+/* 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 */
+};