X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=recctrl%2Fregxread.c;h=4ad161c1e1a057f6bd8e20a348eab262ae9f7112;hb=a18ad7925f7e7440b36c2ec29eb991c0c377d532;hp=b54893696689e487545ec9eb8035c4c722401d6e;hpb=1300c402a9ecc32b470a7db96c0d93172ed1cf25;p=idzebra-moved-to-github.git diff --git a/recctrl/regxread.c b/recctrl/regxread.c index b548936..4ad161c 100644 --- a/recctrl/regxread.c +++ b/recctrl/regxread.c @@ -4,7 +4,14 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: regxread.c,v $ - * Revision 1.1 1996-10-11 10:57:30 adam + * Revision 1.3 1996-11-08 14:05:33 adam + * Bug fix: data1 node member u.tag.get_bytes weren't initialized. + * + * 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 +99,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 +500,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); @@ -662,6 +667,7 @@ static void tagBegin (struct lexSpec *spec, res->parent = parent; res->which = DATA1N_tag; res->u.tag.tag = res->lbuf; + res->u.tag.get_bytes = -1; if (len >= DATA1_LOCALDATA) len = DATA1_LOCALDATA-1;