X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isamb%2Ftstisamb.c;h=08ff71e9ee7c30cc7d29c76812eee154eceb7ad8;hb=97e5c7f8db1ea9f806bf4bca38dee837c32d2e6f;hp=78b65b0bf421110c97822e62e6694d4cf6ab28c4;hpb=64e3d8bb310ec317082d1fc89af4d7cb15d9e106;p=idzebra-moved-to-github.git diff --git a/isamb/tstisamb.c b/isamb/tstisamb.c index 78b65b0..08ff71e 100644 --- a/isamb/tstisamb.c +++ b/isamb/tstisamb.c @@ -1,4 +1,4 @@ -/* $Id: tstisamb.c,v 1.3 2004-06-02 06:39:36 adam Exp $ +/* $Id: tstisamb.c,v 1.6 2004-06-03 00:24:12 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -26,6 +26,18 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include +static void log_item(int level, const void *b, const char *txt) +{ + int x; + memcpy(&x, b, sizeof(int)); + yaz_log(LOG_DEBUG, "%s %d", txt, x); +} + +static void log_pr(const char *txt) +{ + yaz_log(LOG_DEBUG, "%s", txt); +} + int compare_item(const void *a, const void *b) { int ia, ib; @@ -98,12 +110,12 @@ void tst_forward(ISAMB isb, int n) /* read the entries */ pp = isamb_pp_open (isb, isamc_p); - for (i = 0; i