X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=isams%2Fisams.c;h=7994294ed36beb85d339ec37a5e74d6022d89a5d;hb=964067fbd004a402fb6007597705e44b1a331a46;hp=f3583cc57e423d20eecf90367cff217146827978;hpb=896c0427df9d8eff5de6a1735dcd992e067df844;p=idzebra-moved-to-github.git diff --git a/isams/isams.c b/isams/isams.c index f3583cc..7994294 100644 --- a/isams/isams.c +++ b/isams/isams.c @@ -1,5 +1,5 @@ -/* $Id: isams.c,v 1.3 2002-08-02 19:26:56 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 +/* $Id: isams.c,v 1.5 2004-06-01 12:56:39 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 Index Data Aps This file is part of the Zebra server. @@ -37,7 +37,7 @@ typedef struct { typedef unsigned ISAMS_BLOCK_SIZE; struct ISAMS_s { - ISAMS_M method; + ISAMS_M *method; ISAMS_head head; ISAMS_head head_old; char *merge_buf; @@ -57,24 +57,25 @@ struct ISAMS_PP_s { int numRead; }; -void isams_getmethod (ISAMS_M m) +void isams_getmethod (ISAMS_M *m) { m->code_start = NULL; m->code_item = NULL; m->code_stop = NULL; m->compare_item = NULL; + m->log_item = NULL; m->debug = 1; m->block_size = 128; } ISAMS isams_open (BFiles bfs, const char *name, int writeflag, - ISAMS_M method) + ISAMS_M *method) { ISAMS is = (ISAMS) xmalloc (sizeof(*is)); - is->method = (ISAMS_M) xmalloc (sizeof(*is->method)); + is->method = (ISAMS_M *) xmalloc (sizeof(*is->method)); memcpy (is->method, method, sizeof(*method)); is->block_size = is->method->block_size; is->debug = is->method->debug;