X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isamc%2Fisamc.c;h=d8938a2bb418d2df5a807038d054de6c0a4e37c9;hb=cc9f94a61cbd9dcc0df0cf7d0c7c41d2cec88189;hp=4f5c8bc6df383f928053071a5d1c075a34ef97de;hpb=ef696645cc3b7e0f4027008d1dc589c0f0f90c1f;p=idzebra-moved-to-github.git diff --git a/isamc/isamc.c b/isamc/isamc.c index 4f5c8bc..d8938a2 100644 --- a/isamc/isamc.c +++ b/isamc/isamc.c @@ -4,7 +4,20 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: isamc.c,v $ - * Revision 1.17 1999-05-26 07:49:14 adam + * Revision 1.21 2002-06-19 10:29:18 adam + * align block sizes for isam sys. Better plot for test + * + * Revision 1.20 1999/11/30 13:48:04 adam + * Improved installation. Updated for inclusion of YAZ header files. + * + * Revision 1.19 1999/07/14 10:59:27 adam + * Changed functions isc_getmethod, isams_getmethod. + * Improved fatal error handling (such as missing EXPLAIN schema). + * + * Revision 1.18 1999/06/30 09:08:23 adam + * Added coder to reset. + * + * Revision 1.17 1999/05/26 07:49:14 adam * C++ compilation. * * Revision 1.16 1998/05/27 14:32:03 adam @@ -77,7 +90,7 @@ #include #include -#include +#include #include "isamc-p.h" static void flush_block (ISAMC is, int cat); @@ -88,14 +101,15 @@ static void init_fc (ISAMC is, int cat); #define SMALL_TEST 0 -ISAMC_M isc_getmethod (void) +void isc_getmethod (ISAMC_M m) { + static struct ISAMC_filecat_s def_cat[] = { #if SMALL_TEST { 32, 28, 0, 3 }, { 64, 54, 30, 0 }, #else - { 24, 22, 18, 10 }, + { 32, 26, 20, 10 }, { 128, 120, 100, 10 }, { 512, 490, 350, 10 }, { 2048, 1900, 1700, 10 }, @@ -103,23 +117,20 @@ ISAMC_M isc_getmethod (void) { 32768, 32000, 31000, 0 }, #endif }; - ISAMC_M m = (ISAMC_M) xmalloc (sizeof(*m)); m->filecat = def_cat; m->code_start = NULL; m->code_item = NULL; m->code_stop = NULL; + m->code_reset = NULL; m->compare_item = NULL; m->debug = 1; m->max_blocks_mem = 10; - - return m; } - ISAMC isc_open (BFiles bfs, const char *name, int writeflag, ISAMC_M method) { ISAMC is;