X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ficu_I18N.c;h=f40b529294dd19bd505d38c7a2d853b5418bfbba;hb=3f46a4cb43b195b827e585b8806a9fcd3f23d466;hp=966410004ede754b6fadf4759bea263d98ddf1d9;hpb=8b019634e9b2a60e1bc1934d218b7a1c71f55164;p=pazpar2-moved-to-github.git diff --git a/src/icu_I18N.c b/src/icu_I18N.c index 9664100..f40b529 100644 --- a/src/icu_I18N.c +++ b/src/icu_I18N.c @@ -1,26 +1,24 @@ -/* $Id: icu_I18N.c,v 1.23 2007-09-10 16:04:20 adam Exp $ - Copyright (c) 2006-2007, Index Data. +/* This file is part of Pazpar2. + Copyright (C) 2006-2008 Index Data - This file is part of Pazpar2. +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 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. - 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 - You should have received a copy of the GNU General Public License - along with Pazpar2; see the file LICENSE. If not, write to the - Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ #if HAVE_CONFIG_H -#include "cconfig.h" +#include #endif #define USE_TIMING 0 @@ -887,6 +885,8 @@ struct icu_chain * icu_chain_xml_config(xmlNode *xml_node, xmlNode *node = 0; struct icu_chain * chain = 0; + xmlChar *xml_id = 0; + xmlChar *xml_locale = 0; if (!xml_node ||xml_node->type != XML_ELEMENT_NODE @@ -894,8 +894,8 @@ struct icu_chain * icu_chain_xml_config(xmlNode *xml_node, return 0; - xmlChar *xml_id = xmlGetProp(xml_node, (xmlChar *) "id"); - xmlChar *xml_locale = xmlGetProp(xml_node, (xmlChar *) "locale"); + xml_id = xmlGetProp(xml_node, (xmlChar *) "id"); + xml_locale = xmlGetProp(xml_node, (xmlChar *) "locale"); if (!xml_id || !strlen((const char *) xml_id) || !xml_locale || !strlen((const char *) xml_locale)) @@ -911,11 +911,12 @@ struct icu_chain * icu_chain_xml_config(xmlNode *xml_node, for (node = xml_node->children; node; node = node->next) { + xmlChar *xml_rule = 0; + struct icu_chain_step * step = 0; if (node->type != XML_ELEMENT_NODE) continue; - xmlChar *xml_rule = xmlGetProp(node, (xmlChar *) "rule"); - struct icu_chain_step * step = 0; + xml_rule = xmlGetProp(node, (xmlChar *) "rule"); if (!strcmp((const char *) node->name, (const char *) "casemap")){