X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fkcompare.c;h=936929f8f3c9c4ccdbff75fc332790984b2a3ba4;hb=cc9f94a61cbd9dcc0df0cf7d0c7c41d2cec88189;hp=da913f7d0371e4b1246d018840ed64e7ea42a3e6;hpb=77686142af94172d1887190ebd47aeb53f704057;p=idzebra-moved-to-github.git diff --git a/index/kcompare.c b/index/kcompare.c index da913f7..936929f 100644 --- a/index/kcompare.c +++ b/index/kcompare.c @@ -42,6 +42,13 @@ int key_compare_it (const void *p1, const void *p2) return 0; } +char *key_print_it (const void *p, char *buf) +{ + const struct it_key *i = p; + sprintf (buf, "%d:%d", i->sysno, i->seqno); + return buf; +} + int key_compare (const void *p1, const void *p2) { struct it_key i1, i2; @@ -216,8 +223,6 @@ ISAMS_M key_isams_m (Res res, ISAMS_M me) return me; } -#if ZMBOL - ISAMC_M key_isamc_m (Res res, ISAMC_M me) { isc_getmethod (me); @@ -251,8 +256,6 @@ ISAMD_M key_isamd_m (Res res,ISAMD_M me) return me; } -#endif - int key_SU_encode (int ch, char *out) { int i; @@ -278,7 +281,7 @@ int key_SU_encode (int ch, char *out) */ } -int key_SU_decode (int *ch, unsigned char *out) +int key_SU_decode (int *ch, const unsigned char *out) { int len = 1; int fact = 1; @@ -294,7 +297,16 @@ int key_SU_decode (int *ch, unsigned char *out) /* * $Log: kcompare.c,v $ - * Revision 1.36 2001-10-15 19:53:43 adam + * Revision 1.39 2002-04-12 14:55:22 adam + * key_print_it + * + * Revision 1.38 2002/04/05 08:46:26 adam + * Zebra with full functionality + * + * Revision 1.37 2001/11/19 23:08:30 adam + * Added const qualifier for name parameter of key_SU_decode. + * + * Revision 1.36 2001/10/15 19:53:43 adam * POSIX thread updates. First work on term sets. * * Revision 1.35 1999/11/30 13:48:03 adam