/*
- * Copyright (c) 1995-1999, Index Data.
+ * Copyright (c) 1995-2000, Index Data.
* See the file LICENSE for details.
- * Sebastian Hammer, Adam Dickmeiss
*
- * d1_if.c : A simple interface for extracting strings from data1_node tree structures
+ * d1_if.c : A simple interface for extracting strings from data1_node
+ * tree structures
*
* $Log: d1_if.c,v $
- * Revision 1.3 2000-01-06 11:27:02 adam
+ * Revision 1.5 2000-02-10 13:42:43 adam
+ * Removed C++ comment.
+ *
+ * Revision 1.4 2000/01/06 14:30:56 adam
+ * Minor change - to prevent warnings.
+ *
+ * Revision 1.3 2000/01/06 11:27:02 adam
* Minor fix so that this source compiles using Visual C++.
*
* Revision 1.2 2000/01/04 17:46:17 ian
* Also added a simple interface for extracting values from data1 trees using
* a string based tagpath.
*
- *
*/
#include <stdio.h>
else
{
if ( strchr(pWhitespaceChars, **pPosInBuffer) != NULL )
- *pPosInBuffer++;
+ (*pPosInBuffer)++;
else
*pBuff++ = *((*pPosInBuffer)++);
}
}
+/* Max length of a tag */
#define MAX_TAG_SIZE 50
+
/*
* data1_LookupNode : Try and find a node as specified by a tagpath
*/
/* Current Child node as we search for nodes matching the pattern in the tagpath */
data1_node* current_child = node->child;
- /* Max length of a tag */
- int iMaxTagSize=50;
-
/* Current position in string */
char* pCurrCharInPath = pTagPath;
{
if ( iOccurences )
{
- // Everything matched, but not yet found the right occurence of the given tag
+ /* Everything matched, but not yet found the
+ right occurence of the given tag */
iOccurences--;
}
else
{
- /* We have matched a string tag... Is there more to process? */
+ /* We have matched a string tag... Is there more to
+ process? */
matched_node = current_child;
}
}