projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
20956e9
)
Minor changes.
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 19 Apr 1996 16:49:00 +0000
(16:49 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 19 Apr 1996 16:49:00 +0000
(16:49 +0000)
bfile/cfile.c
patch
|
blob
|
history
diff --git
a/bfile/cfile.c
b/bfile/cfile.c
index
c1fd26f
..
cb3c714
100644
(file)
--- a/
bfile/cfile.c
+++ b/
bfile/cfile.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: cfile.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: cfile.c,v $
- * Revision 1.16 1996-04-19 16:23:47 adam
+ * 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.
*
* Serious bug fix in shadow implementation; function new_bucket might
* set wrong bucket number on new bucket.
*
@@
-183,11
+186,7
@@
CFile cf_open (MFile mf, MFile_area area, const char *fname,
static int cf_hash (CFile cf, int no)
{
static int cf_hash (CFile cf, int no)
{
-#if 1
return (no>>3) % cf->head.hash_size;
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)
}
static void release_bucket (CFile cf, struct CFile_hash_bucket *p)
@@
-323,7
+322,7
@@
static int cf_lookup_hash (CFile cf, int no)
}
if (hb)
continue;
}
if (hb)
continue;
-#if 1
+#if 0
/* extra check ... */
for (hb = cf->bucket_lru_back; hb; hb = hb->lru_next)
{
/* extra check ... */
for (hb = cf->bucket_lru_back; hb; hb = hb->lru_next)
{
@@
-439,7
+438,7
@@
static int cf_new_hash (CFile cf, int no)
if (hb)
continue;
if (hb)
continue;
-#if 1
+#if 0
/* extra check ... */
for (hb = cf->bucket_lru_back; hb; hb = hb->lru_next)
{
/* extra check ... */
for (hb = cf->bucket_lru_back; hb; hb = hb->lru_next)
{