X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fzeerex.c;h=82ac08de303f660217088f21769c23787f04c633;hb=2146ffa7919deebc945e8b157f47658f16396b2f;hp=12f6daac352ff09a8c6effce212ac937649f1d66;hpb=93ecda59be42d85293c699061a51d55ac1ebadd7;p=pazpar2-moved-to-github.git diff --git a/src/zeerex.c b/src/zeerex.c index 12f6daa..82ac08d 100644 --- a/src/zeerex.c +++ b/src/zeerex.c @@ -1,4 +1,21 @@ -/* $Id: zeerex.c,v 1.5 2007-03-29 11:02:04 marc Exp $ */ +/* This file is part of Pazpar2. + Copyright (C) 2006-2010 Index Data + +Pazpar2 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 +Software Foundation; either version 2, or (at your option) any later +version. + +Pazpar2 is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +*/ // Reads Zeerex records into a set of structures @@ -14,7 +31,8 @@ // Replace this with something that will take a callback static void fail(const char *s, xmlNode *n) { - yaz_log(YLOG_WARN, "Zeerex Err '%s'; elem '%s/%s'", s, n->parent->name, n->name); + yaz_log(YLOG_WARN, "Zeerex Err '%s'; elem '%s/%s'", + s, n->parent->name, n->name); } // returns an nmem-allocated string if attr is present, or null @@ -367,7 +385,7 @@ static struct zr_map *map(NMEM m, xmlNode *node) static Zr_setting *findsetting(NMEM m, xmlNode *node, char *name) { - static Zr_setting *r = 0; + static Zr_setting *r = 0; /* thread pr */ xmlNode *n; for (n = node->children; n; n = n->next) { @@ -683,7 +701,9 @@ struct zr_explain *zr_read_file(NMEM m, const char *fn) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +