X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isamb%2Fisamb.c;h=2ee7cb1b572b2186361f97608433bc0f9d6f5c8a;hb=70ba74c9bbf739fbe82d1bc2b0fb64a547c0c9e0;hp=1a7b9bdfe673a5d3a12363fef7778d45f8a3fa36;hpb=d587b2b301c06be60ad255eee6f7010cb2d56fe7;p=idzebra-moved-to-github.git diff --git a/isamb/isamb.c b/isamb/isamb.c index 1a7b9bd..2ee7cb1 100644 --- a/isamb/isamb.c +++ b/isamb/isamb.c @@ -1,4 +1,4 @@ -/* $Id: isamb.c,v 1.44 2004-06-04 13:54:56 heikki Exp $ +/* $Id: isamb.c,v 1.47 2004-08-03 14:54:41 heikki Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -56,7 +56,7 @@ struct ISAMB_head { #define CAT_NO 4 /* ISAMB_PTR_CODEC=1 var, =0 fixed */ -#define ISAMB_PTR_CODEC 1 +#define ISAMB_PTR_CODEC 0 struct ISAMB_cache_entry { ISAMB_P pos; @@ -117,8 +117,6 @@ struct ISAMB_PP_s { struct ISAMB_block **block; }; -void isamb_pp_pos( ISAMB_PP pp, int *current, int *total ); - /* FIXME - this should be in a header file */ #if ISAMB_PTR_CODEC static void encode_ptr (char **dst, unsigned pos) @@ -505,7 +503,7 @@ int insert_int (ISAMB b, struct ISAMB_block *p, void *lookahead_item, struct ISAMB_block *sub_p1 = 0, *sub_p2 = 0; char sub_item[DST_ITEM_MAX]; int sub_size; - int more; + int more = 0; *sp = 0; @@ -1816,7 +1814,7 @@ static void isamb_pp_leaf_pos( ISAMB_PP pp, dst=dummybuf; (*pp->isamb->method->code_item) (ISAMC_DECODE, p->decodeClientData,&dst, &src); - assert(dst