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 12:03:21 UTC

svn commit: r291884 - in /webservices/axis2/trunk/c: include/axis2c_om_comment.h modules/xml/om/src/axis2c_om_comment.c

Author: samisa
Date: Tue Sep 27 03:03:14 2005
New Revision: 291884

URL: http://svn.apache.org/viewcvs?rev=291884&view=rev
Log:
Fixed compilation problems due to name changes

Modified:
    webservices/axis2/trunk/c/include/axis2c_om_comment.h
    webservices/axis2/trunk/c/modules/xml/om/src/axis2c_om_comment.c

Modified: webservices/axis2/trunk/c/include/axis2c_om_comment.h
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/include/axis2c_om_comment.h?rev=291884&r1=291883&r2=291884&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2c_om_comment.h (original)
+++ webservices/axis2/trunk/c/include/axis2c_om_comment.h Tue Sep 27 03:03:14 2005
@@ -14,22 +14,20 @@
  * limitations under the License.
  */
 
-#ifndef _AXISC_OM_COMMENT_H_
-#define _AXISC_OM_COMMENT_H_
+#ifndef AXIS2C_OM_COMMENT_H
+#define AXIS2C_OM_COMMENT_H
 #include <axis2c_node.h>
 
 
-struct om_comment_s;
-typedef struct om_comment_s om_comment_t;
-struct om_comment_s
+typedef struct axis2c_om_comment_t
 {
 	char *value;
-};
+}axis2c_om_comment_t;
 
-axis2c_node_t *create_om_comment(const char *value);
-void om_comment_free(node_t *comment_node);
+axis2c_node_t *axis2c_create_om_comment(const char *value);
+void axis2c_om_comment_free(axis2c_om_comment_t *comment_node);
 
-#endif // _AXISC_OM_COMMENT_H_
+#endif // AXIS2C_OM_COMMENT_H
 
 
 

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=291884&r1=291883&r2=291884&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 03:03:14 2005
@@ -21,7 +21,7 @@
 axis2c_node_t *axis2c_create_om_comment(const char *value)
 {
     axis2c_node_t *node = NULL;
-    om_comment_t *comment = NULL;
+    axis2c_om_comment_t *comment = NULL;
 
     node = axis2c_create_node();
     if (!node)
@@ -29,7 +29,7 @@
 	fprintf(stderr, "%d Error", AXIS2C_ERROR_OM_MEMORY_ALLOCATION);
 	return NULL;
     }
-    comment = (om_comment_t *) malloc(sizeof(om_comment_t));
+    comment = (axis2c_om_comment_t *) malloc(sizeof(axis2c_om_comment_t));
     if (!comment)
     {
 	free(node);
@@ -49,7 +49,7 @@
 }
 
 
-void axis2c_om_comment_free(om_comment_t * comment)
+void axis2c_om_comment_free(axis2c_om_comment_t * comment)
 {
     if (comment)
     {
@@ -64,24 +64,24 @@
 *
 */
 
-char *axis2c_om_comment_get_value(node_t * comment_node)
+char *axis2c_om_comment_get_value(axis2c_node_t * comment_node)
 {
     if (!comment_node || comment_node->element_type != OM_COMMENT)
     {
 	return NULL;
     }
-    return strdup(((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(node_t * comment_node, const char *value)
+void axis2c_om_comment_set_value(axis2c_node_t * comment_node, const char *value)
 {
-    om_comment_t *comm = NULL;
+    axis2c_om_comment_t *comm = NULL;
 
     if (!comment_node || comment_node->element_type != OM_COMMENT)
     {
 	return;
     }
-    comm = ((om_comment_t *) (comment_node->data_element));
+    comm = ((axis2c_om_comment_t *) (comment_node->data_element));
 
     if (comm->value)
     {
@@ -89,3 +89,4 @@
     }
     comm->value = strdup(value);
 }
+