X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fkcompare.c;h=44d9c056a18ef7041e76c1f77a969f679b61212f;hb=eb8857cfa2ceaa2635f14888b95d6f71b8def045;hp=5d7454759281574651d28fcb22c5e8cbe6e1c527;hpb=da5e43382ca16244e96457aa700c30e9b3178191;p=idzebra-moved-to-github.git diff --git a/index/kcompare.c b/index/kcompare.c index 5d74547..44d9c05 100644 --- a/index/kcompare.c +++ b/index/kcompare.c @@ -1,11 +1,26 @@ -/* - * Copyright (C) 1994-1999, Index Data - * All rights reserved. - * Sebastian Hammer, Adam Dickmeiss, Heikki Levanto - * log at the end - * - * $Id - */ +/* $Id: kcompare.c,v 1.40 2002-08-02 19:26:55 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 + Index Data Aps + +This file is part of the Zebra server. + +Zebra is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +Zebra is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Zebra; see the file LICENSE.zebra. If not, write to the +Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. +*/ + + #include @@ -42,6 +57,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 +238,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 +271,6 @@ ISAMD_M key_isamd_m (Res res,ISAMD_M me) return me; } -#endif - int key_SU_encode (int ch, char *out) { int i; @@ -294,7 +312,16 @@ int key_SU_decode (int *ch, const unsigned char *out) /* * $Log: kcompare.c,v $ - * Revision 1.37 2001-11-19 23:08:30 adam + * Revision 1.40 2002-08-02 19:26:55 adam + * Towards GPL + * + * 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