X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fisam.h;h=3b694bd32e7d9949aecac74cd581dd74c5a2346a;hb=a5545de18b5d3762a1f29569a4b10ca5017506db;hp=bf965839d2fe2430f658e5a2f1e34f96ed384a41;hpb=f5004e23c618ff466c82dda165f6a1c6c34400ec;p=idzebra-moved-to-github.git diff --git a/include/isam.h b/include/isam.h index bf96583..3b694bd 100644 --- a/include/isam.h +++ b/include/isam.h @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: isam.h,v $ - * Revision 1.4 1994-09-26 17:05:54 quinn + * Revision 1.5 1994-09-27 20:03:36 quinn + * Seems relatively bug-free. + * + * Revision 1.4 1994/09/26 17:05:54 quinn * Trivial. * * Revision 1.3 1994/09/26 16:08:42 quinn @@ -23,12 +26,14 @@ #include +#include "../isam/memory.h" +#include "../isam/physical.h" + #define IS_MAX_BLOCKTYPES 4 #define IS_MAX_RECORD 512 #define IS_DEF_REPACK_PERCENT "30" /* how much relative change before repack */ typedef unsigned int SYSNO; /* should be somewhere else */ -typedef unsigned int ISAM_P; /* * Description of a blocktype (part of an isam file) @@ -42,7 +47,7 @@ typedef struct isam_blocktype int max_keys_block0; /* max num of keys in first block */ int nice_keys_block; /* nice number of keys per block */ int max_keys; /* max number of keys per table */ - int freelist; /* fist free block */ + int freelist; /* first free block */ int top; /* first unused block */ int index; /* placeholder. Always 0. */ char *dbuf; /* buffer for use in I/O operations */ @@ -59,9 +64,8 @@ typedef struct isam_struct int keysize; /* size of the keys (records) used */ int repack; /* how many percent to grow before repack */ int (*cmp)(const void *k1, const void *k2); /* compare function */ -} isam_struct, *ISAM; +} isam_struct; -struct is_mtable; typedef struct ispt_struct { struct is_mtable *tab;