X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Ftrunc.c;fp=index%2Ftrunc.c;h=0f9128e502903e22bc1603078e241be91c0a49ed;hb=81a75ae20b5b250309a70de51bfdf8de0019f882;hp=1638684268d8f15660ac72c45b4c9d106e0d8b1d;hpb=6e89ec34f77c7085a3c95b7e63fce3a1040ed124;p=idzebra-moved-to-github.git diff --git a/index/trunc.c b/index/trunc.c index 1638684..0f9128e 100644 --- a/index/trunc.c +++ b/index/trunc.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: trunc.c,v $ - * Revision 1.21 2002-04-04 14:14:13 adam + * Revision 1.22 2002-04-05 08:46:26 adam + * Zebra with full functionality + * + * Revision 1.21 2002/04/04 14:14:13 adam * Multiple registers (alpha early) * * Revision 1.20 2002/03/20 20:24:29 adam @@ -83,14 +86,12 @@ #include #include #include -#if ZMBOL #include #include #include #if NEW_TRUNC #include #endif -#endif struct trunc_info { int *ptr; @@ -265,7 +266,6 @@ static RSET rset_trunc_r (ZebraHandle zi, const char *term, int length, xfree (rsfd); heap_close (ti); } -#if ZMBOL else if (zi->reg->isam) { ISPT *ispt; @@ -424,7 +424,6 @@ static RSET rset_trunc_r (ZebraHandle zi, const char *term, int length, xfree (ispt); } -#endif else if (zi->reg->isams) { ISAMS_PP *ispt; @@ -482,7 +481,6 @@ static int isams_trunc_cmp (const void *p1, const void *p2) return i1 - i2; } -#if ZMBOL static int isam_trunc_cmp (const void *p1, const void *p2) { ISAM_P i1 = *(ISAM_P*) p1; @@ -517,7 +515,6 @@ static int isamd_trunc_cmp (const void *p1, const void *p2) return d; return isamd_block (i1) - isamd_block (i2); } -#endif RSET rset_trunc (ZebraHandle zi, ISAMS_P *isam_p, int no, const char *term, int length, const char *flags) @@ -542,7 +539,6 @@ RSET rset_trunc (ZebraHandle zi, ISAMS_P *isam_p, int no, } qsort (isam_p, no, sizeof(*isam_p), isams_trunc_cmp); } -#if ZMBOL else if (zi->reg->isam) { if (no == 1) @@ -615,7 +611,6 @@ RSET rset_trunc (ZebraHandle zi, ISAMS_P *isam_p, int no, #endif qsort (isam_p, no, sizeof(*isam_p), isamd_trunc_cmp); } -#endif else { logf (LOG_WARN, "Unknown isam set in rset_trunc");