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
Version 2.0.60
[idzebra-moved-to-github.git]
/
index
/
mod_text.c
diff --git
a/index/mod_text.c
b/index/mod_text.c
index
5aac9d2
..
22af905
100644
(file)
--- a/
index/mod_text.c
+++ b/
index/mod_text.c
@@
-1,5
+1,5
@@
/* This file is part of the Zebra server.
/* This file is part of the Zebra server.
- Copyright (C) 1994-2009 Index Data
+ Copyright (C) Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
@@
-18,6
+18,9
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
@@
-117,12
+120,12
@@
static int filter_extract(void *clientData, struct recExtractCtrl *p)
do
{
int i = 0;
do
{
int i = 0;
-
+
r = buf_getchar(tinfo, fi, w);
while (r > 0 && i < 511 && w[i] != '\n' && w[i] != '\r')
{
i++;
r = buf_getchar(tinfo, fi, w);
while (r > 0 && i < 511 && w[i] != '\n' && w[i] != '\r')
{
i++;
- r = buf_getchar(tinfo, fi, w + i);
+ r = buf_getchar(tinfo, fi, w + i);
}
if (i)
{
}
if (i)
{
@@
-229,7
+232,7
@@
static int filter_retrieve(void *clientData, struct recRetrieveCtrl *p)
}
p->output_format = yaz_oid_recsyn_sutrs;
p->rec_buf = filter_buf;
}
p->output_format = yaz_oid_recsyn_sutrs;
p->rec_buf = filter_buf;
- p->rec_len = filter_ptr;
+ p->rec_len = filter_ptr;
return 0;
}
return 0;
}
@@
-244,7
+247,7
@@
static struct recType filter_type = {
};
RecType
};
RecType
-#ifdef IDZEBRA_STATIC_TEXT
+#if IDZEBRA_STATIC_TEXT
idzebra_filter_text
#else
idzebra_filter
idzebra_filter_text
#else
idzebra_filter