X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Ftrunc.c;h=5acc72dab274d2127950b91956976d1495288937;hb=3679505d0d073f7db6425e597eb559b53e8c4827;hp=3212c6d64f504bcec2391f8f794fca132ba21d4c;hpb=b9093505b17a074e79137ed64595c8269f77d330;p=idzebra-moved-to-github.git diff --git a/index/trunc.c b/index/trunc.c index 3212c6d..5acc72d 100644 --- a/index/trunc.c +++ b/index/trunc.c @@ -1,10 +1,16 @@ /* - * Copyright (C) 1994-1996, Index Data I/S + * Copyright (C) 1994-1997, Index Data I/S * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: trunc.c,v $ - * Revision 1.5 1997-09-17 12:19:17 adam + * Revision 1.7 1997-09-29 09:07:29 adam + * Minor change. + * + * Revision 1.6 1997/09/22 12:39:06 adam + * Added get_pos method for the ranked result sets. + * + * Revision 1.5 1997/09/17 12:19:17 adam * Zebra version corresponds to YAZ version 1.4. * Changed Zebra server so that it doesn't depend on global common_resource. * @@ -100,9 +106,9 @@ static void heap_insert (struct trunc_info *ti, const char *buf, int indx) } } -static -struct trunc_info *heap_init (int size, int key_size, - int (*cmp)(const void *p1, const void *p2)) +static struct trunc_info *heap_init (int size, int key_size, + int (*cmp)(const void *p1, + const void *p2)) { struct trunc_info *ti = xmalloc (sizeof(*ti)); int i; @@ -342,7 +348,7 @@ static int isamc_trunc_cmp (const void *p1, const void *p2) RSET rset_trunc (ZServerInfo *zi, ISAM_P *isam_p, int no) { - logf (LOG_LOG, "rset_trunc no=%d", no); + logf (LOG_DEBUG, "rset_trunc no=%d", no); if (zi->isam) { if (no < 1)