From 80bc3ce27ae1f6e17e993274c8eed047686bae5b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 29 Oct 1996 14:02:09 +0000 Subject: [PATCH] Doesn't use the global data1_tabpath (from YAZ). Instead the function data1_get_tabpath is used. --- recctrl/regxread.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/recctrl/regxread.c b/recctrl/regxread.c index b548936..011213c 100644 --- a/recctrl/regxread.c +++ b/recctrl/regxread.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: regxread.c,v $ - * Revision 1.1 1996-10-11 10:57:30 adam + * Revision 1.2 1996-10-29 14:02:09 adam + * Doesn't use the global data1_tabpath (from YAZ). Instead the function + * data1_get_tabpath is used. + * + * Revision 1.1 1996/10/11 10:57:30 adam * New module recctrl. Used to manage records (extract/retrieval). * * Revision 1.24 1996/06/17 14:25:31 adam @@ -92,14 +96,12 @@ #include #include -#include +#include #include #include "grsread.h" #define REGX_DEBUG 0 -extern char *data1_tabpath; - #define F_WIN_EOF 2000000000 #define F_WIN_READ 1 @@ -495,7 +497,7 @@ int readFileSpec (struct lexSpec *spec) lineBuf = xmalloc (1+lineSize); logf (LOG_LOG, "Reading spec %s", spec->name); sprintf (lineBuf, "%s.flt", spec->name); - if (!(spec_inf = yaz_path_fopen (data1_tabpath, lineBuf, "r"))) + if (!(spec_inf = yaz_path_fopen (data1_get_tabpath(), lineBuf, "r"))) { logf (LOG_ERRNO|LOG_WARN, "Cannot read spec file %s", spec->name); xfree (lineBuf); -- 1.7.10.4