From: Martin Mares Date: Fri, 23 Feb 2001 14:02:46 +0000 (+0000) Subject: Generate index cards. X-Git-Tag: holmes-import~1541 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=ce542b425562ea482fc29095e4ee3ce935c4d551;p=libucw.git Generate index cards. 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. --- diff --git a/lib/index.h b/lib/index.h index 8a975293..6394b65c 100644 --- a/lib/index.h +++ b/lib/index.h @@ -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 {