/* This file is part of the Zebra server.
- Copyright (C) 1994-2009 Index Data
+ Copyright (C) 1994-2011 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
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#include <assert.h>
#include <string.h>
{
struct recTypeClass *rts = 0;
-#ifdef IDZEBRA_STATIC_GRS_SGML
+#if IDZEBRA_STATIC_GRS_SGML
if (1)
{
extern RecType idzebra_filter_grs_sgml[];
}
#endif
-#ifdef IDZEBRA_STATIC_TEXT
+#if IDZEBRA_STATIC_TEXT
if (1)
{
extern RecType idzebra_filter_text[];
}
#endif
-#ifdef IDZEBRA_STATIC_GRS_XML
+#if IDZEBRA_STATIC_GRS_XML
#if HAVE_EXPAT_H
if (1)
{
#endif
#endif
-#ifdef IDZEBRA_STATIC_GRS_REGX
+#if IDZEBRA_STATIC_GRS_REGX
if (1)
{
extern RecType idzebra_filter_grs_regx[];
}
#endif
-#ifdef IDZEBRA_STATIC_GRS_MARC
+#if IDZEBRA_STATIC_GRS_MARC
if (1)
{
extern RecType idzebra_filter_grs_marc[];
}
#endif
-#ifdef IDZEBRA_STATIC_SAFARI
+#if IDZEBRA_STATIC_SAFARI
if (1)
{
extern RecType idzebra_filter_safari[];
}
#endif
-#ifdef IDZEBRA_STATIC_ALVIS
+#if IDZEBRA_STATIC_ALVIS
if (1)
{
extern RecType idzebra_filter_alvis[];
}
#endif
-#ifdef IDZEBRA_STATIC_DOM
+#if IDZEBRA_STATIC_DOM
if (1)
{
extern RecType idzebra_filter_dom[];
if (dir)
{
struct dirent *de;
-
+
while ((de = readdir(dir)))
{
size_t dlen = strlen(de->d_name);
const char *err = dlerror();
yaz_log(YLOG_WARN, "dlopen failed %s %s",
fname, err ? err : "none");
-
+
}
}
}
const char *comp_ptr;
char comp[FILENAME_MAX+1];
size_t len;
-
+
len = yaz_filepath_comp(&module_path, &comp_ptr);
if (!len || len >= FILENAME_MAX)
break;
-
+
memcpy(comp, comp_ptr, len);
comp[len] = '\0';
{
struct recTypeClass *r = (struct recTypeClass *)
nmem_malloc (nmem, sizeof(*r));
-
+
r->next = *rts;
*rts = r;
RecTypes rts = (RecTypes) nmem_malloc(data1_nmem_get(dh), sizeof(*rts));
struct recTypeInstance **rti = &rts->entries;
-
+
rts->dh = dh;
for (; rtc; rtc = rtc->next)
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab