projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented ill_get_ILLRequest. More ILL testing for client.
[yaz-moved-to-github.git]
/
retrieval
/
d1_if.c
diff --git
a/retrieval/d1_if.c
b/retrieval/d1_if.c
index
db172a4
..
f9a9f19
100644
(file)
--- a/
retrieval/d1_if.c
+++ b/
retrieval/d1_if.c
@@
-1,12
+1,14
@@
/*
* Copyright (c) 1995-1999, Index Data.
* See the file LICENSE for details.
/*
* Copyright (c) 1995-1999, 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
*
* $Log: d1_if.c,v $
*
* 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.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
* Minor fix so that this source compiles using Visual C++.
*
* Revision 1.2 2000/01/04 17:46:17 ian
@@
-17,7
+19,6
@@
* Also added a simple interface for extracting values from data1 trees using
* a string based tagpath.
*
* Also added a simple interface for extracting values from data1 trees using
* a string based tagpath.
*
- *
*/
#include <stdio.h>
*/
#include <stdio.h>
@@
-57,7
+58,7
@@
char data1_ScanNextToken(char* pBuffer,
else
{
if ( strchr(pWhitespaceChars, **pPosInBuffer) != NULL )
else
{
if ( strchr(pWhitespaceChars, **pPosInBuffer) != NULL )
- *pPosInBuffer++;
+ (*pPosInBuffer)++;
else
*pBuff++ = *((*pPosInBuffer)++);
}
else
*pBuff++ = *((*pPosInBuffer)++);
}
@@
-107,7
+108,9
@@
char *data1_getNodeValue(data1_node* node, char* pTagPath)
}
}
+/* Max length of a tag */
#define MAX_TAG_SIZE 50
#define MAX_TAG_SIZE 50
+
/*
* data1_LookupNode : Try and find a node as specified by a tagpath
*/
/*
* data1_LookupNode : Try and find a node as specified by a tagpath
*/
@@
-119,9
+122,6
@@
data1_node *data1_LookupNode(data1_node* node, char* pTagPath)
/* Current Child node as we search for nodes matching the pattern in the tagpath */
data1_node* current_child = node->child;
/* 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;
/* Current position in string */
char* pCurrCharInPath = pTagPath;