X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Fcfile.h;h=f50ba1baaefb11b777e66599ad763f0e7de44b80;hb=4cea1b9769079a2cdc143f4fe483e69d5b77a813;hp=43d69a96ac1fb7ca7e7617f2e8231f1c0d32a978;hpb=896c0427df9d8eff5de6a1735dcd992e067df844;p=idzebra-moved-to-github.git diff --git a/bfile/cfile.h b/bfile/cfile.h index 43d69a9..f50ba1b 100644 --- a/bfile/cfile.h +++ b/bfile/cfile.h @@ -1,4 +1,4 @@ -/* $Id: cfile.h,v 1.14 2002-08-02 19:26:55 adam Exp $ +/* $Id: cfile.h,v 1.16 2004-08-06 12:28:22 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 Index Data Aps @@ -32,10 +32,10 @@ YAZ_BEGIN_CDECL #define HASH_BUCKET 15 struct CFile_ph_bucket { /* structure on disc */ - int no[HASH_BUCKET]; /* block number in original file */ - int vno[HASH_BUCKET]; /* block number in shadow file */ - int this_bucket; /* this bucket number */ - int next_bucket; /* next bucket number */ + zint no[HASH_BUCKET]; /* block number in original file */ + zint vno[HASH_BUCKET]; /* block number in shadow file */ + zint this_bucket; /* this bucket number */ + zint next_bucket; /* next bucket number */ }; struct CFile_hash_bucket { @@ -53,21 +53,21 @@ typedef struct CFile_struct { struct CFile_head { int state; /* 1 = hash, 2 = flat */ - int next_block; /* next free block / last block */ + zint next_block; /* next free block / last block */ int block_size; /* mfile/bfile block size */ int hash_size; /* no of chains in hash table */ - int first_bucket; /* first hash bucket */ - int next_bucket; /* last hash bucket + 1 = first flat bucket */ - int flat_bucket; /* last flat bucket + 1 */ + zint first_bucket; /* first hash bucket */ + zint next_bucket; /* last hash bucket + 1 = first flat bucket */ + zint flat_bucket; /* last flat bucket + 1 */ } head; MFile block_mf; MFile hash_mf; - int *array; + zint *array; struct CFile_hash_bucket **parray; struct CFile_hash_bucket *bucket_lru_front, *bucket_lru_back; int dirty; - int bucket_in_memory; - int max_bucket_in_memory; + zint bucket_in_memory; + zint max_bucket_in_memory; char *iobuf; MFile rmf; int no_hits; @@ -78,8 +78,8 @@ typedef struct CFile_struct int cf_close (CFile cf); CFile cf_open (MFile mf, MFile_area area, const char *fname, int block_size, int wflag, int *firstp); -int cf_read (CFile cf, int no, int offset, int nbytes, void *buf); -int cf_write (CFile cf, int no, int offset, int nbytes, const void *buf); +int cf_read (CFile cf, zint no, int offset, int nbytes, void *buf); +int cf_write (CFile cf, zint no, int offset, int nbytes, const void *buf); void cf_unlink (CFile cf); void cf_commit (CFile cf);