]> mj.ucw.cz Git - libucw.git/commitdiff
Generate index cards.
authorMartin Mares <mj@ucw.cz>
Fri, 23 Feb 2001 14:02:46 +0000 (14:02 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 23 Feb 2001 14:02:46 +0000 (14:02 +0000)
The chewer is complete, but it will probably need a bit of optimization
and fine-tuning when we get some real data. The searching for words present
in the cache doesn't look well.

lib/index.h

index 8a97529380954be6fe4f87cb8ddcc151605a6c03..6394b65cfa2ed55833a68aecc33ea3e04c28f1fd 100644 (file)
@@ -53,6 +53,8 @@ enum card_flag {
   CARD_FLAG_MERGED = 8,                        /* Destination of a merge [merger] */
 };
 
+#define CARD_POS_SHIFT 5               /* Card positions are shifted this # of bytes to the right */
+
 /* String fingerprints */
 
 struct fingerprint {