projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented TCL filter. Updated recctrl system.
[idzebra-moved-to-github.git]
/
recctrl
/
rectext.c
diff --git
a/recctrl/rectext.c
b/recctrl/rectext.c
index
cd78a76
..
6d36db3
100644
(file)
--- a/
recctrl/rectext.c
+++ b/
recctrl/rectext.c
@@
-1,10
+1,16
@@
/*
/*
- * Copyright (C) 1994-1998, Index Data I/S
+ * Copyright (C) 1994-1998, Index Data
* All rights reserved.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: rectext.c,v $
* All rights reserved.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: rectext.c,v $
- * Revision 1.8 1998-05-20 10:12:27 adam
+ * Revision 1.10 1999-05-20 12:57:18 adam
+ * Implemented TCL filter. Updated recctrl system.
+ *
+ * Revision 1.9 1998/10/16 08:14:38 adam
+ * Updated record control system.
+ *
+ * Revision 1.8 1998/05/20 10:12:27 adam
* Implemented automatic EXPLAIN database maintenance.
* Modified Zebra to work with ASN.1 compiled version of YAZ.
*
* Implemented automatic EXPLAIN database maintenance.
* Modified Zebra to work with ASN.1 compiled version of YAZ.
*
@@
-64,7
+70,12
@@
#include <zebrautl.h>
#include "rectext.h"
#include <zebrautl.h>
#include "rectext.h"
-static void text_init (void)
+static void *text_init (RecType recType)
+{
+ return 0;
+}
+
+static void text_destroy (void *clientData)
{
}
{
}
@@
-107,7
+118,7
@@
void buf_close (struct buf_info *fi)
xfree (fi);
}
xfree (fi);
}
-static int text_extract (struct recExtractCtrl *p)
+static int text_extract (void *clientData, struct recExtractCtrl *p)
{
char w[512];
RecWord recWord;
{
char w[512];
RecWord recWord;
@@
-137,7
+148,7
@@
static int text_extract (struct recExtractCtrl *p)
return 0;
}
return 0;
}
-static int text_retrieve (struct recRetrieveCtrl *p)
+static int text_retrieve (void *clientData, struct recRetrieveCtrl *p)
{
int r, text_ptr = 0;
static char *text_buf = NULL;
{
int r, text_ptr = 0;
static char *text_buf = NULL;
@@
-211,6
+222,7
@@
static int text_retrieve (struct recRetrieveCtrl *p)
static struct recType text_type = {
"text",
text_init,
static struct recType text_type = {
"text",
text_init,
+ text_destroy,
text_extract,
text_retrieve
};
text_extract,
text_retrieve
};