Implemented the 'equivalent' directive for .chr-files.
[idzebra-moved-to-github.git] / recctrl / rectext.c
index aac5eec..3b14203 100644 (file)
@@ -1,6 +1,6 @@
-/* $Id: rectext.c,v 1.21 2004-09-28 10:15:03 adam Exp $
-   Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004
-   Index Data Aps
+/* $Id: rectext.c,v 1.24 2005-03-05 09:19:16 adam Exp $
+   Copyright (C) 1995-2005
+   Index Data ApS
 
 This file is part of the Zebra server.
 
@@ -105,7 +105,7 @@ static int text_extract (void *clientData, struct recExtractCtrl *p)
     struct buf_info *fi = buf_open (p);
 
 #if 0
-    yaz_log(LOG_LOG, "text_extract off=%ld",
+    yaz_log(YLOG_LOG, "text_extract off=%ld",
            (long) (*fi->p->tellf)(fi->p->fh));
 #endif
     xfree(tinfo->sep);
@@ -124,8 +124,8 @@ static int text_extract (void *clientData, struct recExtractCtrl *p)
        }
         if (i)
         {
-            recWord.string = w;
-           recWord.length = i;
+            recWord.term_buf = w;
+           recWord.term_len = i;
             (*p->tokenAdd)(&recWord);
         }
     } while (r > 0);