-/* $Id: d1_if.c,v 1.8 2006-05-10 08:13:18 adam Exp $
- Copyright (C) 1995-2005
- Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+ 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
for more details.
You should have received a copy of the GNU General Public License
-along with Zebra; see the file LICENSE.zebra. If not, write to the
-Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
return(**pPosInBuffer);
}
-/*
+/*
* Attempt to find a string value given the specified tagpath
- *
- * Need to make this safe by passing in a buffer.....
+ *
+ * Need to make this safe by passing in a buffer.....
*
*/
char *data1_getNodeValue(data1_node* node, char* pTagPath)
/* Max length of a tag */
#define MAX_TAG_SIZE 50
-/*
+/*
* data1_LookupNode : Try and find a node as specified by a tagpath
*/
data1_node *data1_LookupNode(data1_node* node, char* pTagPath)
/* See if we can find the . at the end of this clause */
sepchr = data1_ScanNextToken(pTagPath, &pCurrCharInPath, "."," ", Buffer);
}
-
+
}
yaz_log(YLOG_DEBUG,"search node for child like [%d,%d,%s,%d]",iTagType,iTagValue,StringTagVal,iOccurences);
-
+
/* OK.. We have extracted tagtype, Value and Occurence, see if we can find a node */
/* Under the current parent matching that description */
/**
\brief Count the number of occurences of the last instance on a tagpath.
\param node : The root of the tree we wish to look for occurences in
- \param pTagPath : The tagpath we want to count the occurences of...
+ \param pTagPath : The tagpath we want to count the occurences of...
*/
int data1_CountOccurences(data1_node* node, char* pTagPath)
{
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab