X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isamb%2Ftstisamb.c;h=dd25b29668c738c4647a587d506ee8c9ce7635c5;hb=07bf59c106e8d2492c5743019c2932a001e48181;hp=be9823d3aa9ae95f45655fb9492a26e51863f6a6;hpb=89d3a004b7c651fd5673abfc192e1472dc4d4197;p=idzebra-moved-to-github.git diff --git a/isamb/tstisamb.c b/isamb/tstisamb.c index be9823d..dd25b29 100644 --- a/isamb/tstisamb.c +++ b/isamb/tstisamb.c @@ -1,8 +1,5 @@ -/* $Id: tstisamb.c,v 1.28 2007-01-15 15:10:17 adam Exp $ - Copyright (C) 1995-2007 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 2004-2013 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 @@ -20,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 @@ -130,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); @@ -174,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) */ @@ -187,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) @@ -216,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++; @@ -357,7 +357,7 @@ void tst_random(ISAMB isb, int n, int rounds, int max_dups) int i, j; for (i = 0; i