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 sa...@apache.org on 2005/09/28 05:49:45 UTC
svn commit: r292116 - in /webservices/axis2/trunk/c/modules/xml/om/src:
axis2c_om_attribute.c axis2c_om_comment.c axis2c_om_doctype.c
axis2c_om_document.c axis2c_om_element.c axis2c_om_processing_instruction.c
axis2c_om_text.c axis2c_qname.c
Author: samisa
Date: Tue Sep 27 20:49:36 2005
New Revision: 292116
URL: http://svn.apache.org/viewcvs?rev=292116&view=rev
Log:
Fixed the build problems
Modified:
webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_attribute.c
webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_comment.c
webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_doctype.c
webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_document.c
webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_element.c
webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_processing_instruction.c
webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_text.c
webservices/axis2/trunk/c/modules/xml/om/src/axis2c_qname.c
Modified: webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_attribute.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_attribute.c?rev=292116&r1=292115&r2=292116&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_attribute.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_attribute.c Tue Sep 27 20:49:36 2005
@@ -23,8 +23,9 @@
axis2c_om_attribute_t *axis2c_create_om_attribute(const char *localname,
- const char *value,
- axis2c_om_namespace_t * ns)
+ const char *value,
+ axis2c_om_namespace_t *
+ ns)
{
axis2c_om_attribute_t *attr =
(axis2c_om_attribute_t *) malloc(sizeof(axis2c_om_attribute_t));
@@ -62,8 +63,7 @@
{
qn = axis2c_create_qname(attr->localname, attr->ns->uri,
attr->ns->prefix);
- }
- else
+ } else
{
qn = axis2c_create_qname(attr->localname, NULL, NULL);
}
@@ -72,4 +72,3 @@
return NULL;
}
-
Modified: webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_comment.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_comment.c?rev=292116&r1=292115&r2=292116&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_comment.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_comment.c Tue Sep 27 20:49:36 2005
@@ -44,7 +44,7 @@
}
node->data_element = comment;
- node->element_type = OM_COMMENT;
+ node->element_type =AXIS2C_OM_COMMENT;
return node;
}
@@ -66,18 +66,20 @@
char *axis2c_om_comment_get_value(axis2c_node_t * comment_node)
{
- if (!comment_node || comment_node->element_type != OM_COMMENT)
+ if (!comment_node || comment_node->element_type !=AXIS2C_OM_COMMENT)
{
return NULL;
}
- return strdup(((axis2c_om_comment_t *) (comment_node->data_element))->value);
+ return strdup(((axis2c_om_comment_t *) (comment_node->data_element))->
+ value);
}
-void axis2c_om_comment_set_value(axis2c_node_t * comment_node, const char *value)
+void axis2c_om_comment_set_value(axis2c_node_t * comment_node,
+ const char *value)
{
axis2c_om_comment_t *comm = NULL;
- if (!comment_node || comment_node->element_type != OM_COMMENT)
+ if (!comment_node || comment_node->element_type !=AXIS2C_OM_COMMENT)
{
return;
}
@@ -89,4 +91,3 @@
}
comm->value = strdup(value);
}
-
Modified: webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_doctype.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_doctype.c?rev=292116&r1=292115&r2=292116&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_doctype.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_doctype.c Tue Sep 27 20:49:36 2005
@@ -17,7 +17,8 @@
#include <axis2c_om_doctype.h>
#include <stdlib.h>
-axis2c_node_t *axis2c_create_om_doctype(axis2c_node_t * parent, const char *value)
+axis2c_node_t *axis2c_create_om_doctype(axis2c_node_t * parent,
+ const char *value)
{
axis2c_om_doctype_t *doctype = NULL;
axis2c_node_t *node = axis2c_create_node();
@@ -34,7 +35,7 @@
}
doctype->value = strdup(value);
node->data_element = doctype;
- node->element_type = OM_DOCTYPE;
+ node->element_type =AXIS2C_OM_DOCTYPE;
if (parent)
{
node->parent = parent;
@@ -61,7 +62,7 @@
}
doctype->value = NULL;
node->data_element = doctype;
- node->element_type = OM_DOCTYPE;
+ node->element_type =AXIS2C_OM_DOCTYPE;
if (parent)
{
node->parent = parent;
@@ -82,16 +83,18 @@
char *axis2c_om_doctype_get_value(axis2c_node_t * doctype_node)
{
- if (!doctype_node || doctype_node->element_type != OM_DOCTYPE)
+ if (!doctype_node || doctype_node->element_type !=AXIS2C_OM_DOCTYPE)
{
return NULL;
}
- return strdup(((axis2c_om_doctype_t *) (doctype_node->data_element))->value);
+ return strdup(((axis2c_om_doctype_t *) (doctype_node->data_element))->
+ value);
}
-void axis2c_om_doctype_set_value(axis2c_node_t * doctype_node, const char *value)
+void axis2c_om_doctype_set_value(axis2c_node_t * doctype_node,
+ const char *value)
{
axis2c_om_doctype_t *doctype = NULL;
- if (!doctype_node || doctype_node->element_type != OM_DOCTYPE)
+ if (!doctype_node || doctype_node->element_type !=AXIS2C_OM_DOCTYPE)
{
return;
}
@@ -102,5 +105,3 @@
}
doctype->value = strdup(value);
}
-
-
Modified: webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_document.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_document.c?rev=292116&r1=292115&r2=292116&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_document.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_document.c Tue Sep 27 20:49:36 2005
@@ -19,12 +19,14 @@
#include <stdlib.h>
-om_document_t *axis2c_create_om_document_with_root(axis2c_node_t * root_ele,
- stax_om_builder_t *
- builder)
+axis2c_om_document_t *axis2c_create_om_document_with_root(axis2c_node_t *
+ root_ele,
+ axis2c_stax_om_builder_t
+ * builder)
{
- axis2c_om_document_t *doc = (axis2c_om_document_t *) malloc(sizeof(axis2c_om_document_t));
+ axis2c_om_document_t *doc =
+ (axis2c_om_document_t *) malloc(sizeof(axis2c_om_document_t));
if (!doc)
{
@@ -38,9 +40,11 @@
return doc;
}
-axis2c_om_document_t *axis2c_create_om_document(stax_om_builder_t * builder)
+axis2c_om_document_t *axis2c_create_om_document(axis2c_stax_om_builder_t *
+ builder)
{
- axis2c_om_document_t *doc = (axis2c_om_document_t *) malloc(sizeof(axis2c_om_document_t));
+ axis2c_om_document_t *doc =
+ (axis2c_om_document_t *) malloc(sizeof(axis2c_om_document_t));
if (!doc)
{
return NULL;
@@ -51,6 +55,7 @@
doc->done = FALSE;
doc->first_child = NULL;
doc->last_child = NULL;
+ return doc;
}
void axis2c_free_om_document(axis2c_om_document_t * doc)
@@ -60,14 +65,16 @@
}
-axis2c_node_t *axis2c_om_document_get_document_element(axis2c_om_document_t * document)
+axis2c_node_t *axis2c_om_document_get_document_element(axis2c_om_document_t
+ * document)
{
//while(document->root_element == NULL)
//{}
return document->root_element;
}
-void axis2c_om_document_set_charset_encoding(axis2c_om_document_t * document,
+void axis2c_om_document_set_charset_encoding(axis2c_om_document_t *
+ document,
char *charset_encoding)
{
if (document)
@@ -79,18 +86,22 @@
}
}
-char *axis2c_om_document_get_charset_encoding(axis2c_om_document_t * document)
+char *axis2c_om_document_get_charset_encoding(axis2c_om_document_t *
+ document)
{
if (document)
{
- return strdup(document->char_set_encoding);
+ return document->char_set_encoding;
}
+
+ return NULL;
}
-void axis2c_om_document_add_child(axis2c_om_document_t * document, axis2c_node_t * child)
+void axis2c_om_document_add_child(axis2c_om_document_t * document,
+ axis2c_node_t * child)
{
- if (!document || !child || child->element_type != OM_ELEMENT)
+ if (!document || !child || child->element_type != AXIS2C_OM_ELEMENT)
{
//error
return;
@@ -100,13 +111,10 @@
{
document->first_child = child;
child->prev_sibling = NULL;
- }
- else
+ } else
{
child->prev_sibling = document->last_child;
document->last_child->next_sibling = child;
}
child->next_sibling = NULL;
}
-
-
Modified: webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_element.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_element.c?rev=292116&r1=292115&r2=292116&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_element.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_element.c Tue Sep 27 20:49:36 2005
@@ -19,7 +19,7 @@
#include <stdlib.h>
axis2c_node_t *axis2c_create_om_element(const char *localname,
- axis2c_om_namespace_t * ns)
+ axis2c_om_namespace_t * ns)
{
axis2c_node_t *node = axis2c_create_node();
if (node)
@@ -33,15 +33,14 @@
element->pns_counter = 0;
element->attributes = NULL;
element->namespaces = NULL;
- }
- else
+ } else
{
//could not allocate memory
free(node);
return NULL;
}
- node->element_type = OM_ELEMENT;
+ node->element_type = AXIS2C_OM_ELEMENT;
node->data_element = element;
return node;
}
@@ -51,8 +50,9 @@
// create an om element using localname namespace and parent element
axis2c_node_t *axis2c_create_om_element_with_parent(const char *localname,
- axis2c_om_namespace_t * ns,
- axis2c_node_t * parent)
+ axis2c_om_namespace_t *
+ ns,
+ axis2c_node_t * parent)
{
axis2c_node_t *curr_node = axis2c_create_om_element(localname, ns);
if (!curr_node)
@@ -71,8 +71,10 @@
}
// create an om_element using qname and parent
-axis2c_node_t *axis2c_create_om_element_with_qname_parent(axis2c_qname_t * qname,
- axis2c_node_t * parent)
+axis2c_node_t *axis2c_create_om_element_with_qname_parent(axis2c_qname_t *
+ qname,
+ axis2c_node_t *
+ parent)
{
axis2c_node_t *node = NULL;;
if (!qname)
@@ -80,9 +82,8 @@
return NULL; // can't create an element
}
- node =
- axis2c_create_om_element_with_parent(qname->localpart, NULL,
- parent);
+ node = axis2c_create_om_element_with_parent(qname->localpart, NULL,
+ parent);
if (node)
{
((axis2c_om_element_t *) (node->data_element))->ns =
@@ -92,9 +93,10 @@
}
-axis2c_om_namespace_t *axis2c_om_element_find_namespace(axis2c_om_element_t* element_node,
- const char *uri,
- const char *prefix)
+axis2c_om_namespace_t *axis2c_om_element_find_namespace(axis2c_node_t *
+ element_node,
+ const char *uri,
+ const char *prefix)
{
//om_element_t *ele=NULL;
axis2c_om_namespace_t *ns = NULL;
@@ -103,7 +105,7 @@
return NULL;
}
if (!(element_node->data_element)
- || element_node->element_type != OM_ELEMENT)
+ || element_node->element_type !=AXIS2C_OM_ELEMENT)
{
// wrong element type or null node
@@ -119,7 +121,7 @@
return ns;
}
if ((element_node->parent != NULL)
- && (element_node->parent->element_type == OM_ELEMENT))
+ && (element_node->parent->element_type ==AXIS2C_OM_ELEMENT))
{
axis2c_om_element_find_namespace(element_node->parent, uri,
prefix);
@@ -130,13 +132,15 @@
// declare a namespace for this om element
-axis2c_om_namespace_t *axis2c_om_element_declare_namespace(axis2c_om_element_t* element_node,
- axis2c_om_namespace_t * ns)
+axis2c_om_namespace_t *axis2c_om_element_declare_namespace(axis2c_node_t *
+ element_node,
+ axis2c_om_namespace_t
+ * ns)
{
apr_status_t status;
axis2c_om_element_t *element = NULL;
if (!element_node || !ns || !element_node->data_element
- || element_node->element_type != OM_ELEMENT)
+ || element_node->element_type != AXIS2C_OM_ELEMENT)
{
return NULL;
}
@@ -156,12 +160,11 @@
axis2c_om_namespace_t
- *axis2c_om_element_declare_namespace_with_ns_uri_prefix(axis2c_node_t *
- element_node,
- const char
- *uri,
- const char
- *prefix)
+ *
+axis2c_om_element_declare_namespace_with_ns_uri_prefix(axis2c_node_t *
+ element_node,
+ const char *uri,
+ const char *prefix)
{
axis2c_om_namespace_t *nsp = NULL;
nsp = axis2c_create_om_namespace(uri, prefix);
@@ -175,15 +178,15 @@
* can be used to retrive a prefix of a known namespace uri
*
*/
-axis2c_om_namespace_t *axis2c_om_element_find_declared_namespace(axis2c_node_t *
- element_node,
- const char *uri,
- const char
- *prefix)
+axis2c_om_namespace_t
+ *axis2c_om_element_find_declared_namespace(axis2c_node_t *
+ element_node,
+ const char *uri,
+ const char *prefix)
{
void *ns = NULL;
axis2c_om_element_t *element = NULL;
- if (!element_node || !ns || element_node->element_type != OM_ELEMENT)
+ if (!element_node || !ns || element_node->element_type != AXIS2C_OM_ELEMENT)
{
return NULL;
}
@@ -206,12 +209,10 @@
-static axis2c_om_namespace_t *axis2c_om_element_handle_namespace_with_qname(axis2c_node_t
- *
- element_node,
- axis2c_qname_t
- *
- qname)
+static axis2c_om_namespace_t
+ *axis2c_om_element_handle_namespace_with_qname(axis2c_node_t *
+ element_node,
+ axis2c_qname_t * qname)
{
axis2c_om_namespace_t *pns = NULL;
char *ns_uri = qname->ns_uri;
@@ -244,10 +245,9 @@
-static axis2c_om_namespace_t *axis2c_om_element_handle_namespace(axis2c_node_t *
- element_node,
- axis2c_om_namespace_t *
- ns)
+static axis2c_om_namespace_t
+ *axis2c_om_element_handle_namespace(axis2c_node_t * element_node,
+ axis2c_om_namespace_t * ns)
{
axis2c_om_namespace_t *ns1 = NULL;
if (!ns || !element_node)
@@ -267,15 +267,17 @@
}
-axis2c_om_attribute_t *axis2c_om_element_add_attribute(axis2c_node_t * element_node,
- axis2c_om_attribute_t * attr)
+axis2c_om_attribute_t *axis2c_om_element_add_attribute(axis2c_node_t *
+ element_node,
+ axis2c_om_attribute_t
+ * attr)
{
apr_status_t status;
axis2c_qname_t *t = NULL;
axis2c_om_element_t *element = NULL;
char *key = NULL;
- if (!element_node || element_node->element_type != OM_ELEMENT)
+ if (!element_node || element_node->element_type !=AXIS2C_OM_ELEMENT)
{
//fprintf(stderr,"Error");
return NULL;
@@ -298,13 +300,15 @@
return attr;
}
-axis2c_om_attribute_t *axis2c_om_element_get_attribute(axis2c_node_t * element_node,
- axis2c_qname_t * qname)
+axis2c_om_attribute_t *axis2c_om_element_get_attribute(axis2c_node_t *
+ element_node,
+ axis2c_qname_t *
+ qname)
{
char *key = NULL;
axis2c_om_element_t *element = NULL;
if (!element_node || !qname
- || element_node->element_type != OM_ELEMENT)
+ || element_node->element_type != AXIS2C_OM_ELEMENT)
{
return NULL;
}
@@ -328,8 +332,7 @@
{
//fprintf(stderr,"Error null value for qname ");
return NULL;
- }
- else
+ } else
{
if (qname->localpart)
i += strlen(qname->localpart);
@@ -357,22 +360,21 @@
*
*/
-axis2c_om_attribute_t *axis2c_om_attribute_add_attribute_with_namespace(axis2c_node_t *
- element_node,
- const char
- *attribute_name,
- const char
- *value,
- axis2c_om_namespace_t
- * ns)
+axis2c_om_attribute_t
+ *axis2c_om_attribute_add_attribute_with_namespace(axis2c_node_t *
+ element_node,
+ const char
+ *attribute_name,
+ const char *value,
+ axis2c_om_namespace_t
+ * ns)
{
axis2c_om_namespace_t *t = NULL;
if (!element_node)
{
return NULL;
- }
- else if (element_node->element_type != OM_ELEMENT)
+ } else if (element_node->element_type != AXIS2C_OM_ELEMENT)
{
return NULL;
}
@@ -421,7 +423,8 @@
}
*/
-void axis2c_om_element_set_namespace(axis2c_node_t * node, axis2c_om_namespace_t * ns)
+void axis2c_om_element_set_namespace(axis2c_node_t * node,
+ axis2c_om_namespace_t * ns)
{
axis2c_om_namespace_t *nsp = NULL;
if (ns && node && (node->data_element))
@@ -458,7 +461,7 @@
const char *localname)
{
axis2c_om_element_t *element = NULL;
- if (!element_node || element_node->element_type != OM_ELEMENT)
+ if (!element_node || element_node->element_type !=AXIS2C_OM_ELEMENT)
{
// not correct element or null pointer
return;
@@ -473,7 +476,7 @@
char *axis2c_om_element_get_localname(axis2c_node_t * element_node)
{
- if (!element_node || element_node->element_type != OM_ELEMENT)
+ if (!element_node || element_node->element_type !=AXIS2C_OM_ELEMENT)
{
return NULL;
}
Modified: webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_processing_instruction.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_processing_instruction.c?rev=292116&r1=292115&r2=292116&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_processing_instruction.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_processing_instruction.c Tue Sep 27 20:49:36 2005
@@ -26,9 +26,12 @@
*
*/
-axis2c_node_t *axis2c_create_om_processing_instruction_with_parent(axis2c_node_t * parent,
- const char *target,
- const char *value)
+axis2c_node_t
+ *axis2c_create_om_processing_instruction_with_parent(axis2c_node_t *
+ parent,
+ const char
+ *target,
+ const char *value)
{
axis2c_om_processing_instruction_t *pi = NULL;
axis2c_node_t *pi_node = axis2c_create_node();
@@ -46,7 +49,7 @@
pi->value = strdup(value);
}
pi_node->data_element = pi;
- pi_node->element_type = OM_PROCESSING_INSTRUCTION;
+ pi_node->element_type =AXIS2C_OM_PROCESSING_INSTRUCTION;
if (parent)
{
@@ -56,7 +59,8 @@
return pi_node;
}
-axis2c_node_t *axis2c_create_empty_om_processing_instruction(axis2c_node_t * parent)
+axis2c_node_t *axis2c_create_empty_om_processing_instruction(axis2c_node_t
+ * parent)
{
axis2c_node_t *pi_node = NULL;
axis2c_om_processing_instruction_t *pi = NULL;
@@ -75,7 +79,7 @@
}
// set node type
pi_node->data_element = pi;
- pi_node->element_type = OM_PROCESSING_INSTRUCTION;
+ pi_node->element_type =AXIS2C_OM_PROCESSING_INSTRUCTION;
if (parent)
{
pi_node->parent = parent;
@@ -87,31 +91,31 @@
char *axis2c_om_processing_instruction_get_value(axis2c_node_t * pi_node)
{
- if (!pi_node || pi_node->element_type != OM_PROCESSING_INSTRUCTION)
+ if (!pi_node || pi_node->element_type !=AXIS2C_OM_PROCESSING_INSTRUCTION)
{
// error handling
return NULL;
}
- return ((axis2c_om_processing_instruction_t *) (pi_node->data_element))->
- value;
+ return ((axis2c_om_processing_instruction_t *) (pi_node->
+ data_element))->value;
}
char *axis2c_om_processing_instruction_get_target(axis2c_node_t * pi_node)
{
- if (!pi_node || pi_node->element_type != OM_PROCESSING_INSTRUCTION)
+ if (!pi_node || pi_node->element_type !=AXIS2C_OM_PROCESSING_INSTRUCTION)
{
return NULL;
}
- return ((axis2c_om_processing_instruction_t *) (pi_node->data_element))->
- target;
+ return ((axis2c_om_processing_instruction_t *) (pi_node->
+ data_element))->target;
}
axis2c_om_processing_instruction_t
- *axis2c_om_processing_instruction_get_om_processing_instruction(axis2c_node_t
- *
- pi_node)
+ *
+axis2c_om_processing_instruction_get_om_processing_instruction
+(axis2c_node_t * pi_node)
{
- if (!pi_node || pi_node->element_type != OM_PROCESSING_INSTRUCTION)
+ if (!pi_node || pi_node->element_type !=AXIS2C_OM_PROCESSING_INSTRUCTION)
{
return NULL;
}
@@ -121,8 +125,8 @@
void axis2c_om_processing_instruction_set_value(axis2c_node_t * pi_node,
const char *value)
{
- om_processing_instruction_t *pi = NULL;
- if (!pi_node || pi_node->element_type != OM_PROCESSING_INSTRUCTION)
+ axis2c_om_processing_instruction_t *pi = NULL;
+ if (!pi_node || pi_node->element_type !=AXIS2C_OM_PROCESSING_INSTRUCTION)
{
return;
}
@@ -139,7 +143,7 @@
const char *value)
{
axis2c_om_processing_instruction_t *pi = NULL;
- if (!pi_node || pi_node->element_type != OM_PROCESSING_INSTRUCTION)
+ if (!pi_node || pi_node->element_type != AXIS2C_OM_PROCESSING_INSTRUCTION)
{
return;
}
@@ -152,4 +156,3 @@
pi = NULL;
return;
}
-
Modified: webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_text.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_text.c?rev=292116&r1=292115&r2=292116&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_text.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_text.c Tue Sep 27 20:49:36 2005
@@ -38,12 +38,12 @@
text->content_id = NULL;
text->mime_type = NULL;
node->data_element = text;
- node->element_type = OM_TEXT;
+ node->element_type = AXIS2C_OM_TEXT;
return node;
}
axis2c_node_t *axis2c_create_om_text_with_parent(axis2c_node_t * parent,
- const char *value)
+ const char *value)
{
axis2c_node_t *node;
if (!parent)
@@ -78,4 +78,3 @@
}
return NULL;
}
-
Modified: webservices/axis2/trunk/c/modules/xml/om/src/axis2c_qname.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/src/axis2c_qname.c?rev=292116&r1=292115&r2=292116&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/src/axis2c_qname.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/src/axis2c_qname.c Tue Sep 27 20:49:36 2005
@@ -20,8 +20,8 @@
#include <stdio.h>
-axis2c_qname_t *axis2c_create_qname(const char *localname, const char *ns_uri,
- const char *prefix)
+axis2c_qname_t *axis2c_create_qname(const char *localname,
+ const char *ns_uri, const char *prefix)
{
axis2c_qname_t *qn = (axis2c_qname_t *) malloc(sizeof(axis2c_qname_t));
if (!qn)