* 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
#include <bfile.h>
+#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)
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 */
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;