X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=isamb%2Ftstisamb.c;h=d48d837564b45251248a9737d44df8dae9fce054;hp=4eacd2a8b1995a941ce399bc4a9a5a5f5dbb98e2;hb=aeea139423b8eaf28a4de53b3d7b2ad1f22284e7;hpb=97a7adeb9e5059463f039495cc01cfa448463a27 diff --git a/isamb/tstisamb.c b/isamb/tstisamb.c index 4eacd2a..d48d837 100644 --- a/isamb/tstisamb.c +++ b/isamb/tstisamb.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1995-2008 Index Data + Copyright (C) 1994-2011 Index Data 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 @@ -17,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #if HAVE_SYS_TIMES_H #include #endif @@ -127,7 +130,7 @@ void tst_insert(ISAMB isb, int n) isamc_i.clientData = &ri; isamc_i.read_item = code_read; - + isamc_p = 0; /* new list */ isamb_merge (isb, &isamc_p , &isamc_i); @@ -171,7 +174,7 @@ void tst_insert(ISAMB isb, int n) isamc_i.clientData = &ri; isamc_i.read_item = code_read; - + isamb_merge (isb, &isamc_p , &isamc_i); /* delete a number of entries (odd ones) */ @@ -184,7 +187,7 @@ void tst_insert(ISAMB isb, int n) isamc_i.clientData = &ri; isamc_i.read_item = code_read; - + isamb_merge (isb, &isamc_p, &isamc_i); if (isamc_p) @@ -213,13 +216,13 @@ void tst_forward(ISAMB isb, int n) isamc_i.clientData = &ri; isamc_i.read_item = code_read; - + isamc_p = 0; isamb_merge (isb, &isamc_p, &isamc_i); /* read the entries */ pp = isamb_pp_open (isb, isamc_p, 1); - + for (i = 0; iidx >= ri->max) return 0; - + if (ri->delta[ri->idx] > 0) { ri->level++; @@ -354,7 +357,7 @@ void tst_random(ISAMB isb, int n, int rounds, int max_dups) int i, j; for (i = 0; i