X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=index%2Ftrav.c;h=e251f244a445967baaa717b98a38febaee55297d;hb=b9093505b17a074e79137ed64595c8269f77d330;hp=994445e9fed25165b667d226cc61a8a8508ec824;hpb=f0dbdd21e0227559e4407a5e25ce3ead47ede825;p=idzebra-moved-to-github.git diff --git a/index/trav.c b/index/trav.c index 994445e..e251f24 100644 --- a/index/trav.c +++ b/index/trav.c @@ -4,7 +4,19 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: trav.c,v $ - * Revision 1.28 1996-11-01 08:58:44 adam + * Revision 1.31 1997-09-17 12:19:17 adam + * Zebra version corresponds to YAZ version 1.4. + * Changed Zebra server so that it doesn't depend on global common_resource. + * + * Revision 1.30 1997/09/09 13:38:09 adam + * Partial port to WIN95/NT. + * + * Revision 1.29 1997/02/12 20:39:47 adam + * Implemented options -f that limits the log to the first + * records. + * Changed some log messages also. + * + * Revision 1.28 1996/11/01 08:58:44 adam * Interface to isamc system now includes update and delete. * * Revision 1.27 1996/10/29 14:06:56 adam @@ -106,10 +118,14 @@ */ #include #include +#ifdef WINDOWS +#include +#else #include -#include -#include +#endif +#include #include +#include #include #include @@ -132,7 +148,7 @@ static void repositoryExtractR (int deleteFlag, char *rep, e = dir_open (rep); if (!e) return; - logf (LOG_LOG, "Dir: %s", rep); + logf (LOG_LOG, "dir %s", rep); if (rep[rep_len-1] != '/') rep[rep_len] = '/'; else @@ -195,7 +211,7 @@ static void fileUpdateR (struct dirs_info *di, struct dirs_entry *dst, sprintf (tmppath, "%s%s", base, src); e_src = dir_open (tmppath); - logf (LOG_LOG, "Dir: %s", tmppath); + logf (LOG_LOG, "dir %s", tmppath); #if 0 if (!dst || repComp (dst->path, src, src_len)) @@ -344,7 +360,7 @@ void repositoryShow (struct recordGroup *rGroup) Dict dict; struct dirs_info *di; - if (!(dict = dict_open (FMATCH_DICT, 50, 1))) + if (!(dict = dict_open (rGroup->bfs, FMATCH_DICT, 50, 1))) { logf (LOG_FATAL, "dict_open fail of %s", FMATCH_DICT); exit (1); @@ -459,7 +475,7 @@ void repositoryUpdate (struct recordGroup *rGroup) if (rGroup->recordId && !strcmp (rGroup->recordId, "file")) { Dict dict; - if (!(dict = dict_open (FMATCH_DICT, 50, 1))) + if (!(dict = dict_open (rGroup->bfs, FMATCH_DICT, 50, 1))) { logf (LOG_FATAL, "dict_open fail of %s", FMATCH_DICT); exit (1);