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
Use dpkg-buildflags in build process
[idzebra-moved-to-github.git]
/
index
/
mod_safari.c
diff --git
a/index/mod_safari.c
b/index/mod_safari.c
index
92e9336
..
05b49e1
100644
(file)
--- a/
index/mod_safari.c
+++ b/
index/mod_safari.c
@@
-17,6
+17,9
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <yaz/oid_db.h>
#include <stdio.h>
#include <assert.h>
#include <yaz/oid_db.h>
#include <stdio.h>
#include <assert.h>
@@
-148,9
+151,9
@@
static int filter_extract(void *clientData, struct recExtractCtrl *p)
recWord.index_type = type_cstr;
if (tinfo->segments)
{
recWord.index_type = type_cstr;
if (tinfo->segments)
{
- if (sscanf(cp, ZINT_FORMAT " " ZINT_FORMAT " " ZINT_FORMAT
+ if (sscanf(cp, ZINT_FORMAT " " ZINT_FORMAT " " ZINT_FORMAT
ZINT_FORMAT " %39s %n",
ZINT_FORMAT " %39s %n",
- &recWord.record_id, &recWord.section_id,
+ &recWord.record_id, &recWord.section_id,
&recWord.segment,
&recWord.seqno,
field, &nor) < 5)
&recWord.segment,
&recWord.seqno,
field, &nor) < 5)
@@
-274,7
+277,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;
}
@@
-299,7
+302,7
@@
static struct recType filter_type2 = {
};
RecType
};
RecType
-#ifdef IDZEBRA_STATIC_SAFARI
+#if IDZEBRA_STATIC_SAFARI
idzebra_filter_safari
#else
idzebra_filter
idzebra_filter_safari
#else
idzebra_filter