X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzsets.c;h=5deef633dc7515fe5eee23c4d3f7fac1541a0fb5;hb=2730140edaab8fc1df36e4b82fb1a4fcc523de05;hp=0935fe1b893c3ff31e5da66f42db3ee6b038534e;hpb=e5b0bb88921b593c89dd6ae9077c6566bc8a6a91;p=idzebra-moved-to-github.git diff --git a/index/zsets.c b/index/zsets.c index 0935fe1..5deef63 100644 --- a/index/zsets.c +++ b/index/zsets.c @@ -1,10 +1,20 @@ /* - * Copyright (C) 1994-1998, Index Data + * Copyright (C) 1994-1999, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: zsets.c,v $ - * Revision 1.19 1998-09-22 10:48:22 adam + * Revision 1.22 1999-02-02 14:51:15 adam + * Updated WIN32 code specific sections. Changed header. + * + * Revision 1.21 1998/11/16 16:03:46 adam + * Moved loggin utilities to Yaz. Was implemented in file zlogs.c. + * + * Revision 1.20 1998/11/16 10:10:53 adam + * Fixed problem with zebraPosSetCreate that occurred when positions were + * less than 1. + * + * Revision 1.19 1998/09/22 10:48:22 adam * Minor changes in search API. * * Revision 1.18 1998/09/22 10:03:45 adam @@ -75,7 +85,7 @@ */ #include #include -#ifdef WINDOWS +#ifdef WIN32 #include #else #include @@ -118,8 +128,6 @@ ZebraSet resultSetAddRPN (ZebraHandle zh, ODR input, ODR output, { ZebraSet zebraSet; - zlog_rpn (rpn); - zh->errCode = 0; zh->errString = NULL; zh->hits = 0; @@ -255,7 +263,7 @@ ZebraPosSet zebraPosSetCreate (ZebraHandle zh, const char *name, for (i = 0; inum_entries) + if (position > 0 && position <= sort_info->num_entries) { logf (LOG_DEBUG, "got pos=%d (sorted)", position); sr[i].sysno = sort_info->entries[position-1]->sysno;