You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by da...@apache.org on 2004/07/15 06:04:48 UTC
cvs commit: ws-axis/c/src/xml/txpp/lib xpp.c xpp.h
damitha 2004/07/14 21:04:48
Modified: c/src/xml/txpp/lib xpp.c xpp.h
Log:
Revision Changes Path
1.6 +13 -11 ws-axis/c/src/xml/txpp/lib/xpp.c
Index: xpp.c
===================================================================
RCS file: /home/cvs/ws-axis/c/src/xml/txpp/lib/xpp.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- xpp.c 13 Jul 2004 07:38:54 -0000 1.5
+++ xpp.c 15 Jul 2004 04:04:48 -0000 1.6
@@ -300,21 +300,23 @@
{
if(ct)
{
- num_chars = 0;
- ct->next = ct->buff;
- ct->dirty = ct->buff;
- state = S_0;
+ num_chars = 0;
+ ct->next = ct->buff;
+ ct->dirty = ct->buff;
+ state = S_0;
tok_state = PROLOG;
- ct->get_block = get_block;
- ct->data.ptrs = NULL;
- ct->data.utf8ptrs = NULL;
- ct->data.ptrs_sz = 8;
+ ct->get_block = get_block;
+ ct->data.ptrs = NULL;
+ ct->data.utf8ptrs = NULL;
+ /* number of pointers that can be held in the data.ptrs buffer is initialized
+ * to this amount at the beginning
+ */
+ ct->data.ptrs_sz = 8;
data_counter = 0;
eventPtr = NULL;
- eventEndPtr = NULL;
+ eventEndPtr = NULL;
protocolEncodingName = encodingName;
-
return XML_ERROR_NONE;
}
else
@@ -380,7 +382,7 @@
int sz = data->ptrs_sz << 1;
char **ptrs = (char **)malloc(sz << 2);
if (!ptrs)
- return XML_TEST_ERROR;
+ return XML_ERROR_NO_MEMORY;
if (data->utf8ptrs)
{
memmove(ptrs, data->utf8ptrs, data->num_ptrs_utf8 << 2);
1.4 +13 -4 ws-axis/c/src/xml/txpp/lib/xpp.h
Index: xpp.h
===================================================================
RCS file: /home/cvs/ws-axis/c/src/xml/txpp/lib/xpp.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- xpp.h 26 Apr 2004 04:04:40 -0000 1.3
+++ xpp.h 15 Jul 2004 04:04:48 -0000 1.4
@@ -127,13 +127,22 @@
void ( *free_fcn)(void *ptr);
} XML_Memory_Handling_Suite;
+/** Struct that holds information of the tokenized stream
+ *
+ */
typedef struct data
{
- int type;
- int ptrs_sz;
- int num_ptrs;
+ /* Variable to hold the type of tag(eg.START_TAG) */
+ int type;
+ /* Number of tokenized strings that can be held in ptrs buffer */
+ int ptrs_sz;
+ /* Number of tokenized strings that are held in prts buffer currently*/
+ int num_ptrs;
+ /* Number of ptrs pointing to the utf8 converted and tokenized strings*/
int num_ptrs_utf8;
- char **ptrs;
+ /* The buffer to hold pointers to tokenized strings */
+ char **ptrs;
+ /* the buffer to hold pointers to utf8 converted tokenized strings */
char **utf8ptrs;
} data_t;