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/27 11:54:39 UTC

svn commit: r291880 - in /webservices/axis2/trunk/c/modules/xml/om/src: axis2c_om_doctype.c axis2c_om_document.c

Author: samisa
Date: Tue Sep 27 02:54:34 2005
New Revision: 291880

URL: http://svn.apache.org/viewcvs?rev=291880&view=rev
Log:
fixed compilation problems

Modified:
    webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_doctype.c
    webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_document.c

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=291880&r1=291879&r2=291880&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 02:54:34 2005
@@ -17,16 +17,16 @@
 #include <axis2c_om_doctype.h>
 #include <stdlib.h>
 
-axis2c_node_t *axis2c_create_om_doctype(node_t * parent, const char *value)
+axis2c_node_t *axis2c_create_om_doctype(axis2c_node_t * parent, const char *value)
 {
-    om_doctype_t *doctype = NULL;
+    axis2c_om_doctype_t *doctype = NULL;
     axis2c_node_t *node = axis2c_create_node();
     if (!node)
     {
 	//fprintf(stderr,"Error");
 	return NULL;
     }
-    doctype = (om_doctype_t *) malloc(sizeof(om_doctype_t));
+    doctype = (axis2c_om_doctype_t *) malloc(sizeof(axis2c_om_doctype_t));
     if (!doctype)
     {
 	free(node);
@@ -43,16 +43,16 @@
     return node;
 }
 
-axis2c_node_t *axis2c_create_empty_om_doctype(node_t * parent)
+axis2c_node_t *axis2c_create_empty_om_doctype(axis2c_node_t * parent)
 {
     axis2c_node_t *node = NULL;
-    om_doctype_t *doctype = NULL;
+    axis2c_om_doctype_t *doctype = NULL;
     if (!node)
     {				// error handling       
 	return NULL;
     }
 
-    doctype = (om_doctype_t *) malloc(sizeof(om_doctype_t));
+    doctype = (axis2c_om_doctype_t *) malloc(sizeof(axis2c_om_doctype_t));
 
     if (!doctype)
     {
@@ -70,7 +70,7 @@
     return node;
 }
 
-void axis2c_free_om_doctype(om_doctype_t * om_doc)
+void axis2c_free_om_doctype(axis2c_om_doctype_t * om_doc)
 {
     if (om_doc)
     {
@@ -80,25 +80,27 @@
     }
 }
 
-char *axis2c_om_doctype_get_value(node_t * doctype_node)
+char *axis2c_om_doctype_get_value(axis2c_node_t * doctype_node)
 {
     if (!doctype_node || doctype_node->element_type != OM_DOCTYPE)
     {
 	return NULL;
     }
-    return strdup(((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(node_t * doctype_node, const char *value)
+void axis2c_om_doctype_set_value(axis2c_node_t * doctype_node, const char *value)
 {
-    om_doctype_t *doctype = NULL;
+    axis2c_om_doctype_t *doctype = NULL;
     if (!doctype_node || doctype_node->element_type != OM_DOCTYPE)
     {
 	return;
     }
-    doctype = (om_doctype_t *) (doctype_node->data_element);
+    doctype = (axis2c_om_doctype_t *) (doctype_node->data_element);
     if (doctype->value)
     {
 	free(doctype->value);
     }
     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=291880&r1=291879&r2=291880&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 02:54:34 2005
@@ -19,12 +19,12 @@
 #include <stdlib.h>
 
 
-om_document_t *axis2c_create_om_document_with_root(node_t * root_ele,
+om_document_t *axis2c_create_om_document_with_root(axis2c_node_t * root_ele,
 						   stax_om_builder_t *
 						   builder)
 {
 
-    om_document_t *doc = (om_document_t *) malloc(sizeof(om_document_t));
+    axis2c_om_document_t *doc = (axis2c_om_document_t *) malloc(sizeof(axis2c_om_document_t));
     if (!doc)
     {
 
@@ -38,9 +38,9 @@
     return doc;
 }
 
-om_document_t *axis2c_create_om_document(stax_om_builder_t * builder)
+axis2c_om_document_t *axis2c_create_om_document(stax_om_builder_t * builder)
 {
-    om_document_t *doc = (om_document_t *) malloc(sizeof(om_document_t));
+    axis2c_om_document_t *doc = (axis2c_om_document_t *) malloc(sizeof(axis2c_om_document_t));
     if (!doc)
     {
 	return NULL;
@@ -53,21 +53,21 @@
     doc->last_child = NULL;
 }
 
-void axis2c_free_om_document(om_document_t * doc)
+void axis2c_free_om_document(axis2c_om_document_t * doc)
 {
 
 
 
 }
 
-axis2c_node_t *axis2c_om_document_get_document_element(om_document_t * document)
+axis2c_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(om_document_t * document,
+void axis2c_om_document_set_charset_encoding(axis2c_om_document_t * document,
 					     char *charset_encoding)
 {
     if (document)
@@ -79,7 +79,7 @@
     }
 }
 
-char *axis2c_om_document_get_charset_encoding(om_document_t * document)
+char *axis2c_om_document_get_charset_encoding(axis2c_om_document_t * document)
 {
     if (document)
     {
@@ -88,7 +88,7 @@
 }
 
 
-void axis2c_om_document_add_child(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)
     {
@@ -108,3 +108,5 @@
     }
     child->next_sibling = NULL;
 }
+
+