X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dict%2Fdicttest.c;h=bd05c1c9363ea044588afcf72e794a4025cfe3ef;hb=c00bfddbf0f3608340d61298acc61dafb167f9b2;hp=8221f938d3213e849769d355508c0f0e7d63f21b;hpb=6a0f9234f945bc4956e2bcef75f715661a9eba9a;p=idzebra-moved-to-github.git diff --git a/dict/dicttest.c b/dict/dicttest.c index 8221f93..bd05c1c 100644 --- a/dict/dicttest.c +++ b/dict/dicttest.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2009 Index Data + Copyright (C) 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 #include #include #include @@ -68,7 +71,7 @@ int main (int argc, char **argv) int no_of_new = 0, no_of_same = 0, no_of_change = 0; int no_of_hits = 0, no_of_misses = 0, no_not_found = 0, no_of_deleted = 0; int max_pos; - + prog = argv[0]; if (argc < 2) { @@ -190,7 +193,7 @@ int main (int argc, char **argv) yaz_log (YLOG_FATAL|YLOG_ERRNO, "cannot open %s", inputfile); exit (1); } - + while (fgets (ipf_buf, 1023, ipf)) { char *ipf_ptr = ipf_buf; @@ -282,7 +285,7 @@ int main (int argc, char **argv) } if (rw) { - yaz_log (YLOG_LOG, "Iterations.... %d", no_of_iterations); + yaz_log (YLOG_LOG, "Iterations.... %d", no_of_iterations); if (do_delete) { yaz_log (YLOG_LOG, "No of deleted. %d", no_of_deleted); @@ -303,7 +306,7 @@ int main (int argc, char **argv) if (scan_the_thing) { char term_dict[1024]; - + int before = 1000000; int after = 1000000; yaz_log (YLOG_LOG, "dict_scan");