X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Fcfile.c;h=b14fef865a41d869e670b8df1b654c36dd565edb;hb=af7bc27d33843a8e667022f24589450c39f907f2;hp=c1fd26f9561af6a585a146f3cd80e5d84df0172b;hpb=20956e941d49591da38aceb603792605521e0e60;p=idzebra-moved-to-github.git diff --git a/bfile/cfile.c b/bfile/cfile.c index c1fd26f..b14fef8 100644 --- a/bfile/cfile.c +++ b/bfile/cfile.c @@ -4,7 +4,13 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: cfile.c,v $ - * Revision 1.16 1996-04-19 16:23:47 adam + * Revision 1.18 1996-10-29 13:56:15 adam + * Include of zebrautl.h instead of alexutil.h. + * + * Revision 1.17 1996/04/19 16:49:00 adam + * Minor changes. + * + * Revision 1.16 1996/04/19 16:23:47 adam * Serious bug fix in shadow implementation; function new_bucket might * set wrong bucket number on new bucket. * @@ -63,7 +69,7 @@ #include #include -#include +#include #include #include "cfile.h" @@ -183,11 +189,7 @@ CFile cf_open (MFile mf, MFile_area area, const char *fname, static int cf_hash (CFile cf, int no) { -#if 1 return (no>>3) % cf->head.hash_size; -#else - return (no/(HASH_BUCKET*2+2)) % cf->head.hash_size; -#endif } static void release_bucket (CFile cf, struct CFile_hash_bucket *p) @@ -323,7 +325,7 @@ static int cf_lookup_hash (CFile cf, int no) } if (hb) continue; -#if 1 +#if 0 /* extra check ... */ for (hb = cf->bucket_lru_back; hb; hb = hb->lru_next) { @@ -439,7 +441,7 @@ static int cf_new_hash (CFile cf, int no) if (hb) continue; -#if 1 +#if 0 /* extra check ... */ for (hb = cf->bucket_lru_back; hb; hb = hb->lru_next) {