axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r410750 [10/11] - in /webservices/axis2/trunk/c: woden/include/woden/wsdl20/ woden/include/woden/wsdl20/enumeration/ woden/include/woden/wsdl20/extensions/ woden/include/woden/wsdl20/xml/ woden/include/woden/xml/ woden/src/wsdl20/ woden/src...
Date Thu, 01 Jun 2006 05:18:49 GMT
Modified: webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_content_extension.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_content_extension.c?rev=410750&r1=410749&r2=410750&view=diff
==============================================================================
--- webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_content_extension.c (original)
+++ webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_content_extension.c Wed May 31 22:18:45 2006
@@ -50,71 +50,71 @@
 axis2_status_t AXIS2_CALL 
 axis2_xml_schema_simple_content_extension_free(
         void *sim_content_ext,
-        axis2_env_t **env);
+        const axis2_env_t *env);
 
 axis2_xml_schema_annotated_t *AXIS2_CALL
 axis2_xml_schema_simple_content_extension_get_base_impl(
         void *sim_content_ext,
-        axis2_env_t **env);
+        const axis2_env_t *env);
         
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_simple_content_extension_type(
         void *sim_content_ext,
-        axis2_env_t **env);
+        const axis2_env_t *env);
         
 axis2_hash_t *AXIS2_CALL
 axis2_xml_schema_simple_content_extension_super_objs(
         void *sim_content_ext,
-        axis2_env_t **env);
+        const axis2_env_t *env);
                         
 
 axis2_xml_schema_any_attribute_t* AXIS2_CALL
 axis2_xml_schema_simple_content_extension_get_any_attribute(
         void *sim_content_ext,
-        axis2_env_t **env);
+        const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_content_extension_set_any_attribute(
         void *sim_content_ext,
-        axis2_env_t **env,
+        const axis2_env_t *env,
         axis2_xml_schema_any_attribute_t *any_attr);
 
 axis2_xml_schema_obj_collection_t* AXIS2_CALL
 axis2_xml_schema_simple_content_extension_get_attributes(
         void *sim_content_ext,
-        axis2_env_t **env);
+        const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_content_extension_set_base_type_name(
         void *sim_content_ext,
-        axis2_env_t **env,
+        const axis2_env_t *env,
         axis2_qname_t *base_type_name);
         
                                           
 axis2_qname_t* AXIS2_CALL
 axis2_xml_schema_simple_content_extension_get_base_type_name(
         void *sim_content_ext,
-        axis2_env_t **env);
+        const axis2_env_t *env);
                                           
 int AXIS2_CALL 
 axis2_xml_schema_simple_content_extension_get_type(
         void *sim_content_ext,
-        axis2_env_t **env);                                          
+        const axis2_env_t *env);                                          
                                           
 /*************************** end function protos **********************************/                
                           
 AXIS2_EXTERN axis2_xml_schema_simple_content_extension_t * AXIS2_CALL
-axis2_xml_schema_simple_content_extension_create(axis2_env_t **env)
+axis2_xml_schema_simple_content_extension_create(const axis2_env_t *env)
 {
     axis2_xml_schema_simple_content_extension_impl_t *sim_content_ext_impl = NULL;
     axis2_status_t status = AXIS2_FAILURE;
 
     sim_content_ext_impl = (axis2_xml_schema_simple_content_extension_impl_t*)
-        AXIS2_MALLOC((*env)->allocator, sizeof(axis2_xml_schema_simple_content_extension_impl_t));
+        AXIS2_MALLOC(env->allocator, sizeof(axis2_xml_schema_simple_content_extension_impl_t));
         
     if(!sim_content_ext_impl)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     
@@ -127,13 +127,13 @@
     sim_content_ext_impl->obj_type = AXIS2_XML_SCHEMA_SIMPLE_CONTENT_EXTENSION;
     sim_content_ext_impl->ht_super = NULL;
     
-    sim_content_ext_impl->sim_content_ext.ops = AXIS2_MALLOC((*env)->allocator, 
+    sim_content_ext_impl->sim_content_ext.ops = AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_simple_content_extension_ops_t));
     if(!sim_content_ext_impl->sim_content_ext.ops)
     {
         axis2_xml_schema_simple_content_extension_free(
             &(sim_content_ext_impl->sim_content_ext), env);
-        AXIS2_ERROR_SET((*env)->error, 
+        AXIS2_ERROR_SET(env->error, 
             AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
@@ -218,7 +218,7 @@
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_content_extension_free(
         void *sim_content_ext_ext,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     axis2_xml_schema_simple_content_extension_impl_t *content_ext_impl = NULL;
 
@@ -245,16 +245,16 @@
     }
     if(NULL != content_ext_impl->sim_content_ext.base.ops)
     {
-        AXIS2_FREE((*env)->allocator, content_ext_impl->sim_content_ext.base.ops);
+        AXIS2_FREE(env->allocator, content_ext_impl->sim_content_ext.base.ops);
         content_ext_impl->sim_content_ext.base.ops = NULL;
     }
     if(NULL != content_ext_impl->sim_content_ext.ops)
     {
-        AXIS2_FREE((*env)->allocator, content_ext_impl->sim_content_ext.ops);
+        AXIS2_FREE(env->allocator, content_ext_impl->sim_content_ext.ops);
         content_ext_impl->sim_content_ext.ops = NULL;
     }
  
-    AXIS2_FREE((*env)->allocator, content_ext_impl);
+    AXIS2_FREE(env->allocator, content_ext_impl);
     content_ext_impl = NULL;
     return AXIS2_SUCCESS;
 }
@@ -262,7 +262,7 @@
 axis2_xml_schema_annotated_t *AXIS2_CALL
 axis2_xml_schema_simple_content_extension_get_base_impl(
         void *sim_content_ext,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     axis2_xml_schema_simple_content_extension_impl_t *content_ext_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -275,7 +275,7 @@
 axis2_xml_schema_any_attribute_t* AXIS2_CALL
 axis2_xml_schema_simple_content_extension_get_any_attribute(
         void *sim_content_ext,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     axis2_xml_schema_simple_content_extension_impl_t *cnt_ext_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -286,13 +286,13 @@
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_content_extension_set_any_attribute(
         void *sim_content_ext,
-        axis2_env_t **env,
+        const axis2_env_t *env,
         axis2_xml_schema_any_attribute_t *any_attr)
 {
     axis2_xml_schema_simple_content_extension_impl_t *content_ext_impl = NULL;
     
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, any_attr, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, any_attr, AXIS2_FAILURE);
     if(NULL != content_ext_impl->any_attribute)
     {
         AXIS2_XML_SCHEMA_ANY_ATTRIBUTE_FREE(content_ext_impl->any_attribute, env);
@@ -305,7 +305,7 @@
 axis2_xml_schema_obj_collection_t* AXIS2_CALL
 axis2_xml_schema_simple_content_extension_get_attributes(
         void *sim_content,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     axis2_xml_schema_simple_content_extension_impl_t *cnt_ext_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -316,7 +316,7 @@
 axis2_qname_t* AXIS2_CALL
 axis2_xml_schema_simple_content_extension_get_base_type_name(
         void *sim_content,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     axis2_xml_schema_simple_content_extension_impl_t *content_ext_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -327,7 +327,7 @@
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_content_extension_set_base_type_name(
         void *sim_content,
-        axis2_env_t **env,
+        const axis2_env_t *env,
         axis2_qname_t *base_type_name)
 {
     axis2_xml_schema_simple_content_extension_impl_t *content_ext_impl = NULL;
@@ -345,7 +345,7 @@
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_simple_content_extension_type(
         void *sim_content_ext,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(sim_content_ext)->obj_type;
 }        
@@ -353,7 +353,7 @@
 axis2_hash_t *AXIS2_CALL
 axis2_xml_schema_simple_content_extension_super_objs(
         void *sim_content_ext,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(sim_content_ext)->ht_super;
 }        

Modified: webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_content_restriction.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_content_restriction.c?rev=410750&r1=410749&r2=410750&view=diff
==============================================================================
--- webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_content_restriction.c (original)
+++ webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_content_restriction.c Wed May 31 22:18:45 2006
@@ -53,96 +53,96 @@
 axis2_status_t AXIS2_CALL 
 axis2_xml_schema_simple_content_restriction_free(
         void *sim_content_res,
-        axis2_env_t **env);
+        const axis2_env_t *env);
 
 axis2_xml_schema_annotated_t *AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_get_base_impl(
         void *sim_content_res,
-        axis2_env_t **env);
+        const axis2_env_t *env);
         
 axis2_xml_schema_types_t AXIS2_CALL 
 axis2_xml_schema_simple_content_restriction_type(
         void *sim_content_res,
-        axis2_env_t **env);
+        const axis2_env_t *env);
 
 axis2_hash_t *AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_super_objs(
         void *sim_content_res,
-        axis2_env_t **env);        
+        const axis2_env_t *env);        
 
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_type(
         void *sim_content_res,
-        axis2_env_t **env);
+        const axis2_env_t *env);
         
 axis2_hash_t *AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_super_objs(
         void *sim_content_res,
-        axis2_env_t **env);        
+        const axis2_env_t *env);        
 
 axis2_xml_schema_any_attribute_t* AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_get_any_attribute(
         void *sim_content_res,
-        axis2_env_t **env);
+        const axis2_env_t *env);
         
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_set_any_attribute(
         void *sim_content_res,
-        axis2_env_t **env,
+        const axis2_env_t *env,
         axis2_xml_schema_any_attribute_t *any_attr);
         
 
 axis2_xml_schema_obj_collection_t* AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_get_attributes(
         void *sim_content_res,
-        axis2_env_t **env);
+        const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_set_base_type_name(
         void *sim_content_res,
-        axis2_env_t **env,
+        const axis2_env_t *env,
         axis2_qname_t *base_type_name);
         
                                           
 axis2_qname_t* AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_get_base_type_name(
         void *sim_content_res,
-        axis2_env_t **env);
+        const axis2_env_t *env);
                                           
 axis2_status_t AXIS2_CALL 
 axis2_xml_schema_simple_content_restriction_set_base_type(
         void *sim_content_res,
-        axis2_env_t **env,
+        const axis2_env_t *env,
         axis2_xml_schema_simple_type_t *base_type);
         
                                               
 axis2_xml_schema_simple_type_t* AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_get_base_type(
         void *sim_content_res,
-        axis2_env_t **env);
+        const axis2_env_t *env);
         
                                                  
 axis2_xml_schema_obj_collection_t* AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_get_facets(
         void *sim_content_res,
-        axis2_env_t **env);
+        const axis2_env_t *env);
         
                                           
                                           
 /*****************************************************************************/                                          
 AXIS2_EXTERN axis2_xml_schema_simple_content_restriction_t * AXIS2_CALL
-axis2_xml_schema_simple_content_restriction_create(axis2_env_t **env)
+axis2_xml_schema_simple_content_restriction_create(const axis2_env_t *env)
 {
     axis2_xml_schema_simple_content_restriction_impl_t *sim_content_res_impl = NULL;
     axis2_status_t status = AXIS2_FAILURE;
 
     sim_content_res_impl = (axis2_xml_schema_simple_content_restriction_impl_t*)
-        AXIS2_MALLOC((*env)->allocator, sizeof(axis2_xml_schema_simple_content_restriction_impl_t));
+        AXIS2_MALLOC(env->allocator, sizeof(axis2_xml_schema_simple_content_restriction_impl_t));
         
     if(!sim_content_res_impl)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     
@@ -159,13 +159,13 @@
     sim_content_res_impl->methods = NULL;
     sim_content_res_impl->sim_content_res.base.ops = NULL;
     
-    sim_content_res_impl->sim_content_res.ops = AXIS2_MALLOC((*env)->allocator, 
+    sim_content_res_impl->sim_content_res.ops = AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_simple_content_restriction_ops_t));
     if(!sim_content_res_impl->sim_content_res.ops)
     {
         axis2_xml_schema_simple_content_restriction_free(
             &(sim_content_res_impl->sim_content_res), env);
-        AXIS2_ERROR_SET((*env)->error, 
+        AXIS2_ERROR_SET(env->error, 
             AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
@@ -285,7 +285,7 @@
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_free(
         void *sim_content_res,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     axis2_xml_schema_simple_content_restriction_impl_t *content_res_impl = NULL;
 
@@ -298,7 +298,7 @@
     }
     if(NULL != content_res_impl->sim_content_res.base.ops)
     {
-        AXIS2_FREE((*env)->allocator, content_res_impl->sim_content_res.base.ops);
+        AXIS2_FREE(env->allocator, content_res_impl->sim_content_res.base.ops);
         content_res_impl->sim_content_res.base.ops = NULL;
     
     }
@@ -322,11 +322,11 @@
     }
     if(NULL != content_res_impl->sim_content_res.ops)
     {
-        AXIS2_FREE((*env)->allocator, content_res_impl->sim_content_res.ops);
+        AXIS2_FREE(env->allocator, content_res_impl->sim_content_res.ops);
         content_res_impl->sim_content_res.ops = NULL;
     }
  
-    AXIS2_FREE((*env)->allocator, content_res_impl);
+    AXIS2_FREE(env->allocator, content_res_impl);
     content_res_impl = NULL;
     return AXIS2_SUCCESS;
 }
@@ -334,7 +334,7 @@
 axis2_xml_schema_annotated_t *AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_get_base_impl(
         void *sim_content_res,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     axis2_xml_schema_simple_content_restriction_impl_t *content_res_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -347,7 +347,7 @@
 axis2_xml_schema_any_attribute_t* AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_get_any_attribute(
         void *sim_content_res,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     axis2_xml_schema_simple_content_restriction_impl_t *cnt_res_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -358,13 +358,13 @@
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_set_any_attribute(
         void *sim_content_res,
-        axis2_env_t **env,
+        const axis2_env_t *env,
         axis2_xml_schema_any_attribute_t *any_attr)
 {
     axis2_xml_schema_simple_content_restriction_impl_t *content_res_impl = NULL;
     
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, any_attr, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, any_attr, AXIS2_FAILURE);
     if(NULL != content_res_impl->any_attribute)
     {
         AXIS2_XML_SCHEMA_ANY_ATTRIBUTE_FREE(content_res_impl->any_attribute, env);
@@ -377,7 +377,7 @@
 axis2_xml_schema_obj_collection_t* AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_get_attributes(
         void *sim_content,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     axis2_xml_schema_simple_content_restriction_impl_t *cnt_res_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -388,7 +388,7 @@
 axis2_qname_t* AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_get_base_type_name(
         void *sim_content,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     axis2_xml_schema_simple_content_restriction_impl_t *content_res_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -399,7 +399,7 @@
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_set_base_type_name(
         void *sim_content,
-        axis2_env_t **env,
+        const axis2_env_t *env,
         axis2_qname_t *base_type_name)
 {
     axis2_xml_schema_simple_content_restriction_impl_t *content_res_impl = NULL;
@@ -417,12 +417,12 @@
 axis2_status_t AXIS2_CALL 
 axis2_xml_schema_simple_content_restriction_set_base_type(
         void *sim_content_res,
-        axis2_env_t **env,
+        const axis2_env_t *env,
         axis2_xml_schema_simple_type_t *base_type)
 {
     axis2_xml_schema_simple_content_restriction_impl_t *sim_cnt_res_impl = NULL;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, base_type, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, base_type, AXIS2_FAILURE);
     sim_cnt_res_impl = AXIS2_INTF_TO_IMPL(sim_content_res);
     if(NULL != sim_cnt_res_impl->base_type)
     {
@@ -437,7 +437,7 @@
 axis2_xml_schema_simple_type_t* AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_get_base_type(
         void *sim_content_res,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(sim_content_res)->base_type;
 }                                              
@@ -446,7 +446,7 @@
 axis2_xml_schema_obj_collection_t* AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_get_facets(
         void *sim_content_res,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(sim_content_res)->facets;
 }       
@@ -454,7 +454,7 @@
 axis2_xml_schema_types_t AXIS2_CALL 
 axis2_xml_schema_simple_content_restriction_type(
         void *sim_content_res,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(sim_content_res)->obj_type;
 }        
@@ -462,7 +462,7 @@
 axis2_hash_t *AXIS2_CALL
 axis2_xml_schema_simple_content_restriction_super_objs(
         void *sim_content_res,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(sim_content_res)->ht_super;
 }                                                        

Modified: webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type.c?rev=410750&r1=410749&r2=410750&view=diff
==============================================================================
--- webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type.c (original)
+++ webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type.c Wed May 31 22:18:45 2006
@@ -50,51 +50,51 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_xml_schema_simple_type_free(void *simple_type,
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 
 axis2_xml_schema_type_t *AXIS2_CALL
 axis2_xml_schema_simple_type_get_base_impl(void *simple_type,
-                                        axis2_env_t **env);
+                                        const axis2_env_t *env);
 
 axis2_hash_t *AXIS2_CALL
 axis2_xml_schema_simple_type_super_objs(void *simple_type,
-                                        axis2_env_t **env);
+                                        const axis2_env_t *env);
 
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_simple_type_type(void *simple_type,
-                                  axis2_env_t **env);
+                                  const axis2_env_t *env);
 
 
 axis2_xml_schema_simple_type_content_t* AXIS2_CALL 
 axis2_xml_schema_simple_type_get_content(void *simple_type,
-                axis2_env_t **env);
+                const axis2_env_t *env);
                 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_set_content(void *simple_type,
-                axis2_env_t **env,
+                const axis2_env_t *env,
                 axis2_xml_schema_simple_type_content_t *simple_content);
                 
 axis2_char_t* AXIS2_CALL
 axis2_xml_schema_simple_type_to_string(void *simple_type,
-                                       axis2_env_t **env,
+                                       const axis2_env_t *env,
                                        axis2_char_t *prefix,
                                        int tab);
                                 
 /************************** end       ****************************************/                                
 
 AXIS2_EXTERN axis2_xml_schema_simple_type_t * AXIS2_CALL
-axis2_xml_schema_simple_type_create(axis2_env_t **env,
+axis2_xml_schema_simple_type_create(const axis2_env_t *env,
                                 axis2_xml_schema_t *schema)
 {
     axis2_xml_schema_simple_type_impl_t *simple_type = NULL;
     axis2_xml_schema_annotated_t *annotated =  NULL;
     axis2_status_t status = AXIS2_FAILURE;
 
-    simple_type = AXIS2_MALLOC((*env)->allocator, 
+    simple_type = AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_simple_type_impl_t));
     if(!simple_type)
     {
-        AXIS2_ERROR_SET((*env)->error,
+        AXIS2_ERROR_SET(env->error,
             AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
@@ -107,12 +107,12 @@
     simple_type->ht_super = NULL;
     simple_type->obj_type = AXIS2_XML_SCHEMA_SIMPLE_TYPE;
 
-    simple_type->simple_type.ops = AXIS2_MALLOC((*env)->allocator, 
+    simple_type->simple_type.ops = AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_simple_type_ops_t));
     if(!simple_type->simple_type.ops)
     {
         axis2_xml_schema_simple_type_free(&(simple_type->simple_type), env);
-        AXIS2_ERROR_SET((*env)->error,
+        AXIS2_ERROR_SET(env->error,
             AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
@@ -121,7 +121,7 @@
     if(!simple_type->schema_type)
     {
         axis2_xml_schema_simple_type_free(&(simple_type->schema_type), env);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
 
@@ -148,7 +148,7 @@
     if(!simple_type->methods || !simple_type->ht_super)
     {
         axis2_xml_schema_simple_type_free(&(simple_type->simple_type), env);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
 
@@ -186,7 +186,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_free(void *simple_type,
-                                    axis2_env_t **env)
+                                    const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_impl_t *simple_type_impl = NULL;
 
@@ -211,22 +211,22 @@
     
     if(NULL != simple_type_impl->simple_type.ops)
     {
-        AXIS2_FREE((*env)->allocator, simple_type_impl->simple_type.ops);
+        AXIS2_FREE(env->allocator, simple_type_impl->simple_type.ops);
         simple_type_impl->simple_type.ops = NULL;
     }
     if(NULL != simple_type_impl->simple_type.base.ops)
     {
-        AXIS2_FREE((*env)->allocator, simple_type_impl->simple_type.base.ops);
+        AXIS2_FREE(env->allocator, simple_type_impl->simple_type.base.ops);
         simple_type_impl->simple_type.base.ops = NULL;
     }
-    AXIS2_FREE((*env)->allocator, simple_type_impl);
+    AXIS2_FREE(env->allocator, simple_type_impl);
     simple_type_impl = NULL;
     return AXIS2_SUCCESS;
 }
 
 axis2_xml_schema_type_t *AXIS2_CALL
 axis2_xml_schema_simple_type_get_base_impl(void *simple_type,
-                                axis2_env_t **env)
+                                const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_impl_t *simple_type_impl = NULL;
 
@@ -239,23 +239,23 @@
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_resolve_methods(
                                 axis2_xml_schema_simple_type_t *simple_type,
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_xml_schema_simple_type_t *simple_type_impl,
                                 axis2_hash_t *methods)
 {
     axis2_xml_schema_simple_type_impl_t *type_impl_l = NULL;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, simple_type, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, simple_type, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
     
     type_impl_l = (axis2_xml_schema_simple_type_impl_t *) simple_type_impl;
     
-    simple_type->ops = AXIS2_MALLOC((*env)->allocator, 
+    simple_type->ops = AXIS2_MALLOC(env->allocator, 
             sizeof(axis2_xml_schema_simple_type_ops_t));
     if(!simple_type->ops)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return AXIS2_FAILURE;     
     }       
             
@@ -274,7 +274,7 @@
 
 axis2_xml_schema_simple_type_content_t* AXIS2_CALL
 axis2_xml_schema_simple_type_get_content(void *simple_type,
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_impl_t *simple_type_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -284,7 +284,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_set_content(void *simple_type,
-                                    axis2_env_t **env,
+                                    const axis2_env_t *env,
                                     axis2_xml_schema_simple_type_content_t *simple_content)
 {
     axis2_xml_schema_simple_type_impl_t *simple_type_impl = NULL;
@@ -301,7 +301,7 @@
 
 axis2_char_t* AXIS2_CALL
 axis2_xml_schema_simple_type_to_string(void *simple_type,
-                                       axis2_env_t **env,
+                                       const axis2_env_t *env,
                                        axis2_char_t *prefix,
                                        int tab)
 {
@@ -314,14 +314,14 @@
 
 axis2_hash_t *AXIS2_CALL
 axis2_xml_schema_simple_type_super_objs(void *simple_type,
-                                        axis2_env_t **env)
+                                        const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(simple_type)->ht_super;
 }                                        
 
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_simple_type_type(void *simple_type,
-                                  axis2_env_t **env)
+                                  const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(simple_type)->obj_type;
 }                                  

Modified: webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_content.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_content.c?rev=410750&r1=410749&r2=410750&view=diff
==============================================================================
--- webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_content.c (original)
+++ webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_content.c Wed May 31 22:18:45 2006
@@ -44,34 +44,34 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_xml_schema_simple_type_content_free(void *sim_type_cont,
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 
 axis2_xml_schema_annotated_t *AXIS2_CALL
 axis2_xml_schema_simple_type_content_get_base_impl(void *sim_type_cont,
-                                        axis2_env_t **env);
+                                        const axis2_env_t *env);
 
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_simple_type_content_type(void *sim_type_cont,
-                                            axis2_env_t **env);
+                                            const axis2_env_t *env);
 
 axis2_hash_t* AXIS2_CALL
 axis2_xml_schema_simple_type_content_super_objs(void *sim_type_cont,
-                                                axis2_env_t **env);
+                                                const axis2_env_t *env);
 
 /*************** function prototypes *****************************************/
 
 AXIS2_EXTERN axis2_xml_schema_simple_type_content_t * AXIS2_CALL
-axis2_xml_schema_simple_type_content_create(axis2_env_t **env)
+axis2_xml_schema_simple_type_content_create(const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_content_impl_t *sim_type_cont_impl = NULL;
     axis2_status_t status = AXIS2_FAILURE;
 
-    sim_type_cont_impl = AXIS2_MALLOC((*env)->allocator, 
+    sim_type_cont_impl = AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_simple_type_content_impl_t));
     
     if(!sim_type_cont_impl)
     {
-        AXIS2_ERROR_SET((*env)->error, 
+        AXIS2_ERROR_SET(env->error, 
             AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
@@ -82,13 +82,13 @@
     sim_type_cont_impl->ht_super = NULL;
     sim_type_cont_impl->obj_type = AXIS2_XML_SCHEMA_SIMPLE_TYPE_CONTENT;
     
-    sim_type_cont_impl->sim_type_cont.ops = AXIS2_MALLOC((*env)->allocator, 
+    sim_type_cont_impl->sim_type_cont.ops = AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_simple_type_content_ops_t));
 
     if(!sim_type_cont_impl->sim_type_cont.ops)
     {
         axis2_xml_schema_simple_type_content_free(&(sim_type_cont_impl->sim_type_cont), env);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     
@@ -106,7 +106,7 @@
     if(!sim_type_cont_impl->methods || !sim_type_cont_impl->ht_super)
     {
         axis2_xml_schema_simple_type_content_free(&(sim_type_cont_impl->sim_type_cont), env);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     axis2_hash_set(sim_type_cont_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
@@ -142,7 +142,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_content_free(void *sim_type_cont,
-                                    axis2_env_t **env)
+                                    const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_content_impl_t *sim_type_cont_impl = NULL;
 
@@ -168,18 +168,18 @@
     
     if(NULL != sim_type_cont_impl->sim_type_cont.ops)
     {
-        AXIS2_FREE((*env)->allocator, sim_type_cont_impl->sim_type_cont.ops);
+        AXIS2_FREE(env->allocator, sim_type_cont_impl->sim_type_cont.ops);
         sim_type_cont_impl->sim_type_cont.ops = NULL;
     }
     if(NULL != sim_type_cont_impl->sim_type_cont.base.ops)
     {
-        AXIS2_FREE((*env)->allocator, sim_type_cont_impl->sim_type_cont.base.ops);
+        AXIS2_FREE(env->allocator, sim_type_cont_impl->sim_type_cont.base.ops);
         sim_type_cont_impl->sim_type_cont.base.ops = NULL;
     }
     
     if(NULL != sim_type_cont_impl)
     {
-        AXIS2_FREE((*env)->allocator, sim_type_cont_impl);
+        AXIS2_FREE(env->allocator, sim_type_cont_impl);
         sim_type_cont_impl = NULL;
     }
     return AXIS2_SUCCESS;
@@ -187,7 +187,7 @@
 
 axis2_xml_schema_annotated_t *AXIS2_CALL
 axis2_xml_schema_simple_type_content_get_base_impl(void *sim_type_cont,
-                                axis2_env_t **env)
+                                const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_content_impl_t *sim_type_cont_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -198,24 +198,24 @@
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_content_resolve_methods(
                                 axis2_xml_schema_simple_type_content_t *sim_type_cont,
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_xml_schema_simple_type_content_t *sim_type_cont_impl,
                                 axis2_hash_t *methods)
 {
     axis2_xml_schema_simple_type_content_impl_t *sim_type_cont_impl_l = NULL;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, sim_type_cont_impl, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, sim_type_cont_impl, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
     
     sim_type_cont_impl_l = 
         (axis2_xml_schema_simple_type_content_impl_t *) sim_type_cont_impl;
     
-    sim_type_cont->ops = AXIS2_MALLOC((*env)->allocator, 
+    sim_type_cont->ops = AXIS2_MALLOC(env->allocator, 
             sizeof(axis2_xml_schema_simple_type_content_ops_t));
     if(NULL != sim_type_cont->ops)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return AXIS2_FAILURE;
     }            
     
@@ -233,14 +233,14 @@
 
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_simple_type_content_type(void *sim_type_cont,
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(sim_type_cont)->obj_type;
 }                                            
 
 axis2_hash_t* AXIS2_CALL
 axis2_xml_schema_simple_type_content_super_objs(void *sim_type_cont,
-                                                axis2_env_t **env)
+                                                const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(sim_type_cont)->ht_super;
 }                                                

Modified: webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_list.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_list.c?rev=410750&r1=410749&r2=410750&view=diff
==============================================================================
--- webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_list.c (original)
+++ webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_list.c Wed May 31 22:18:45 2006
@@ -49,53 +49,53 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_xml_schema_simple_type_list_free(void *simple_type_list,
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 
 axis2_xml_schema_simple_type_content_t *AXIS2_CALL
 axis2_xml_schema_simple_type_list_get_base_impl(void *simple_type_list,
-                                        axis2_env_t **env);
+                                        const axis2_env_t *env);
 
 axis2_hash_t* AXIS2_CALL
 axis2_xml_schema_simple_type_list_super_objs(void *simple_type_list,
-                                            axis2_env_t **env);
+                                            const axis2_env_t *env);
                                             
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_simple_type_list_type(void *simple_type_list,
-                                       axis2_env_t **env);                                            
+                                       const axis2_env_t *env);                                            
 
 axis2_xml_schema_simple_type_t* AXIS2_CALL
 axis2_xml_schema_simple_type_list_get_item_type(void *simple_type_list,
-                                            axis2_env_t **env);
+                                            const axis2_env_t *env);
                                             
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_list_set_item_type(void *simple_type_list,
-                                            axis2_env_t **env,
+                                            const axis2_env_t *env,
                                             axis2_xml_schema_simple_type_t *base_type);
 
 axis2_qname_t* AXIS2_CALL
 axis2_xml_schema_simple_type_list_get_item_type_name(void *simple_type_list,
-                                            axis2_env_t **env);
+                                            const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_list_set_item_type_name(void *simple_type_list,
-                                            axis2_env_t **env,
+                                            const axis2_env_t *env,
                                             axis2_qname_t *base_type_name);
 
 /*************** function prototypes *****************************************/
 
 AXIS2_EXTERN axis2_xml_schema_simple_type_list_t * AXIS2_CALL
-axis2_xml_schema_simple_type_list_create(axis2_env_t **env)
+axis2_xml_schema_simple_type_list_create(const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_list_impl_t *simple_type_list_impl = NULL;
     axis2_xml_schema_annotated_t *annotated = NULL;
     axis2_status_t status = AXIS2_FAILURE;
 
-    simple_type_list_impl = AXIS2_MALLOC((*env)->allocator, 
+    simple_type_list_impl = AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_simple_type_list_impl_t));
     
     if(!simple_type_list_impl)
     {
-        AXIS2_ERROR_SET((*env)->error, 
+        AXIS2_ERROR_SET(env->error, 
             AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
@@ -109,14 +109,14 @@
     simple_type_list_impl->obj_type = AXIS2_XML_SCHEMA_SIMPLE_TYPE_LIST;
     
     simple_type_list_impl->simple_type_list.ops = 
-        AXIS2_MALLOC((*env)->allocator, 
+        AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_simple_type_list_ops_t));
 
     if(!simple_type_list_impl->simple_type_list.ops)
     {
         axis2_xml_schema_simple_type_list_free(
             &(simple_type_list_impl->simple_type_list), env);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     
@@ -143,7 +143,7 @@
     {
         axis2_xml_schema_simple_type_list_free(
             &(simple_type_list_impl->simple_type_list), env);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     axis2_hash_set(simple_type_list_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
@@ -201,7 +201,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_list_free(void *simple_type_list,
-                                    axis2_env_t **env)
+                                    const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_list_impl_t *simple_type_list_impl = NULL;
 
@@ -227,20 +227,20 @@
     
     if(NULL != simple_type_list_impl->simple_type_list.ops)
     {
-        AXIS2_FREE((*env)->allocator, 
+        AXIS2_FREE(env->allocator, 
             simple_type_list_impl->simple_type_list.ops);
         simple_type_list_impl->simple_type_list.ops = NULL;
     }
     if(NULL != simple_type_list_impl->simple_type_list.base.ops)
     {
-        AXIS2_FREE((*env)->allocator, 
+        AXIS2_FREE(env->allocator, 
             simple_type_list_impl->simple_type_list.base.ops);
         simple_type_list_impl->simple_type_list.base.ops = NULL;
     }
     
     if(NULL != simple_type_list_impl)
     {
-        AXIS2_FREE((*env)->allocator, simple_type_list_impl);
+        AXIS2_FREE(env->allocator, simple_type_list_impl);
         simple_type_list_impl = NULL;
     }
     return AXIS2_SUCCESS;
@@ -248,7 +248,7 @@
 
 axis2_xml_schema_simple_type_content_t *AXIS2_CALL
 axis2_xml_schema_simple_type_list_get_base_impl(void *simple_type_list,
-                                axis2_env_t **env)
+                                const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_list_impl_t *simple_type_list_impl = NULL;
 
@@ -262,24 +262,24 @@
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_list_resolve_methods(
                     axis2_xml_schema_simple_type_list_t *simple_type_list,
-                    axis2_env_t **env,
+                    const axis2_env_t *env,
                     axis2_xml_schema_simple_type_list_t *simple_type_list_impl,
                     axis2_hash_t *methods)
 {
     axis2_xml_schema_simple_type_list_impl_t *simple_type_list_impl_l = NULL;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, simple_type_list_impl, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, simple_type_list_impl, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
     
     simple_type_list_impl_l = 
         (axis2_xml_schema_simple_type_list_impl_t *) simple_type_list_impl;
     
-    simple_type_list->ops = AXIS2_MALLOC((*env)->allocator, 
+    simple_type_list->ops = AXIS2_MALLOC(env->allocator, 
             sizeof(axis2_xml_schema_simple_type_list_ops_t));
     if(NULL != simple_type_list->ops)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return AXIS2_FAILURE;
     }            
     
@@ -306,7 +306,7 @@
 */
 axis2_xml_schema_simple_type_t* AXIS2_CALL
 axis2_xml_schema_simple_type_list_get_item_type(void *simple_type_list,
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return 
@@ -315,7 +315,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_list_set_item_type(void *simple_type_list,
-                                            axis2_env_t **env,
+                                            const axis2_env_t *env,
                                             axis2_xml_schema_simple_type_t* item_type)
 {
     axis2_xml_schema_simple_type_list_impl_t *sim_type_res_impl = NULL;
@@ -332,7 +332,7 @@
 
 axis2_qname_t* AXIS2_CALL
 axis2_xml_schema_simple_type_list_get_item_type_name(void *simple_type_list,
-                                                            axis2_env_t **env)
+                                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(simple_type_list)->item_type_name;
@@ -340,12 +340,12 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_list_set_item_type_name(void *simple_type_list,
-                                                            axis2_env_t **env,
+                                                            const axis2_env_t *env,
                                                             axis2_qname_t *item_type_name)
 {
     axis2_xml_schema_simple_type_list_impl_t *sim_type_res_impl = NULL;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, item_type_name, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, item_type_name, AXIS2_FAILURE);
     
     sim_type_res_impl = AXIS2_INTF_TO_IMPL(simple_type_list);
     if(NULL != sim_type_res_impl->item_type_name)
@@ -359,14 +359,14 @@
 
 axis2_hash_t* AXIS2_CALL
 axis2_xml_schema_simple_type_list_super_objs(void *simple_type_list,
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(simple_type_list)->ht_super;
 }                                            
                                             
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_simple_type_list_type(void *simple_type_list,
-                                       axis2_env_t **env)
+                                       const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(simple_type_list)->obj_type;
 }                                                                               

Modified: webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_restriction.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_restriction.c?rev=410750&r1=410749&r2=410750&view=diff
==============================================================================
--- webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_restriction.c (original)
+++ webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_restriction.c Wed May 31 22:18:45 2006
@@ -52,57 +52,57 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_xml_schema_simple_type_restriction_free(void *simple_type_restriction,
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 
 axis2_xml_schema_simple_type_content_t *AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_get_base_impl(void *simple_type_restriction,
-                                        axis2_env_t **env);
+                                        const axis2_env_t *env);
 
 axis2_xml_schema_simple_type_t* AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_get_base_type(void *simple_type_restriction,
-                                            axis2_env_t **env);
+                                            const axis2_env_t *env);
 
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_type(void *simple_type_restriction,
-                                            axis2_env_t **env);
+                                            const axis2_env_t *env);
 
 axis2_hash_t* AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_super_objs(void *simple_type_restriction,
-                                                    axis2_env_t **env);
+                                                    const axis2_env_t *env);
 
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_set_base_type(void *simple_type_restriction,
-                                            axis2_env_t **env,
+                                            const axis2_env_t *env,
                                             axis2_xml_schema_simple_type_t *base_type);
 
 axis2_qname_t* AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_get_base_type_name(void *simple_type_restriction,
-                                            axis2_env_t **env);
+                                            const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_set_base_type_name(void *simple_type_restriction,
-                                            axis2_env_t **env,
+                                            const axis2_env_t *env,
                                             axis2_qname_t *base_type_name);
                                             
 axis2_xml_schema_obj_collection_t* AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_get_facets(void *simple_type_restriction,
-                                            axis2_env_t **env);                                       
+                                            const axis2_env_t *env);                                       
 /*************** function prototypes *****************************************/
 
 AXIS2_EXTERN axis2_xml_schema_simple_type_restriction_t * AXIS2_CALL
-axis2_xml_schema_simple_type_restriction_create(axis2_env_t **env)
+axis2_xml_schema_simple_type_restriction_create(const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_restriction_impl_t *simple_type_restriction_impl = NULL;
     axis2_xml_schema_annotated_t *annotated = NULL;
     axis2_status_t status = AXIS2_FAILURE;
 
-    simple_type_restriction_impl = AXIS2_MALLOC((*env)->allocator, 
+    simple_type_restriction_impl = AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_simple_type_restriction_impl_t));
     
     if(!simple_type_restriction_impl)
     {
-        AXIS2_ERROR_SET((*env)->error, 
+        AXIS2_ERROR_SET(env->error, 
             AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
@@ -118,14 +118,14 @@
     
     
     simple_type_restriction_impl->simple_type_restriction.ops = 
-        AXIS2_MALLOC((*env)->allocator, 
+        AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_simple_type_restriction_ops_t));
 
     if(!simple_type_restriction_impl->simple_type_restriction.ops)
     {
         axis2_xml_schema_simple_type_restriction_free(
             &(simple_type_restriction_impl->simple_type_restriction), env);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     
@@ -154,7 +154,7 @@
     if(!simple_type_restriction_impl->methods || !simple_type_restriction_impl->ht_super)
     {
         axis2_xml_schema_simple_type_restriction_free(&(simple_type_restriction_impl->simple_type_restriction), env);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     axis2_hash_set(simple_type_restriction_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
@@ -209,7 +209,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_free(void *simple_type_restriction,
-                                    axis2_env_t **env)
+                                    const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_restriction_impl_t *simple_type_restriction_impl = NULL;
 
@@ -237,20 +237,20 @@
     
     if(NULL != simple_type_restriction_impl->simple_type_restriction.ops)
     {
-        AXIS2_FREE((*env)->allocator, 
+        AXIS2_FREE(env->allocator, 
             simple_type_restriction_impl->simple_type_restriction.ops);
         simple_type_restriction_impl->simple_type_restriction.ops = NULL;
     }
     if(NULL != simple_type_restriction_impl->simple_type_restriction.base.ops)
     {
-        AXIS2_FREE((*env)->allocator, 
+        AXIS2_FREE(env->allocator, 
             simple_type_restriction_impl->simple_type_restriction.base.ops);
         simple_type_restriction_impl->simple_type_restriction.base.ops = NULL;
     }
     
     if(NULL != simple_type_restriction_impl)
     {
-        AXIS2_FREE((*env)->allocator, simple_type_restriction_impl);
+        AXIS2_FREE(env->allocator, simple_type_restriction_impl);
         simple_type_restriction_impl = NULL;
     }
     return AXIS2_SUCCESS;
@@ -258,7 +258,7 @@
 
 axis2_xml_schema_simple_type_content_t *AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_get_base_impl(void *simple_type_restriction,
-                                axis2_env_t **env)
+                                const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_restriction_impl_t *simple_type_restriction_impl = NULL;
 
@@ -272,24 +272,24 @@
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_resolve_methods(
                     axis2_xml_schema_simple_type_restriction_t *simple_type_restriction,
-                    axis2_env_t **env,
+                    const axis2_env_t *env,
                     axis2_xml_schema_simple_type_restriction_t *simple_type_restriction_impl,
                     axis2_hash_t *methods)
 {
     axis2_xml_schema_simple_type_restriction_impl_t *simple_type_restriction_impl_l = NULL;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, simple_type_restriction_impl, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, simple_type_restriction_impl, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
     
     simple_type_restriction_impl_l = 
         (axis2_xml_schema_simple_type_restriction_impl_t *) simple_type_restriction_impl;
     
-    simple_type_restriction->ops = AXIS2_MALLOC((*env)->allocator, 
+    simple_type_restriction->ops = AXIS2_MALLOC(env->allocator, 
             sizeof(axis2_xml_schema_simple_type_restriction_ops_t));
     if(NULL != simple_type_restriction->ops)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return AXIS2_FAILURE;
     }            
     
@@ -319,7 +319,7 @@
 */
 axis2_xml_schema_simple_type_t* AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_get_base_type(void *simple_type_restriction,
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return 
@@ -328,7 +328,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_set_base_type(void *simple_type_restriction,
-                                            axis2_env_t **env,
+                                            const axis2_env_t *env,
                                             axis2_xml_schema_simple_type_t* base_type)
 {
     axis2_xml_schema_simple_type_restriction_impl_t *sim_type_res_impl = NULL;
@@ -347,7 +347,7 @@
 
 axis2_qname_t* AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_get_base_type_name(void *simple_type_restriction,
-                                                            axis2_env_t **env)
+                                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(simple_type_restriction)->base_type_name;
@@ -355,12 +355,12 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_set_base_type_name(void *simple_type_restriction,
-                                                            axis2_env_t **env,
+                                                            const axis2_env_t *env,
                                                             axis2_qname_t *base_type_name)
 {
     axis2_xml_schema_simple_type_restriction_impl_t *sim_type_res_impl = NULL;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, base_type_name, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, base_type_name, AXIS2_FAILURE);
     
     sim_type_res_impl = AXIS2_INTF_TO_IMPL(simple_type_restriction);
     if(NULL != sim_type_res_impl->base_type_name)
@@ -374,7 +374,7 @@
 
 axis2_xml_schema_obj_collection_t* AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_get_facets(void *simple_type_restriction,
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_restriction_impl_t *sim_type_res_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -384,14 +384,14 @@
 
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_type(void *simple_type_restriction,
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(simple_type_restriction)->obj_type;
 }                                            
 
 axis2_hash_t* AXIS2_CALL
 axis2_xml_schema_simple_type_restriction_super_objs(void *simple_type_restriction,
-                                                    axis2_env_t **env)
+                                                    const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(simple_type_restriction)->ht_super;
 }                                                    

Modified: webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_union.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_union.c?rev=410750&r1=410749&r2=410750&view=diff
==============================================================================
--- webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_union.c (original)
+++ webservices/axis2/trunk/c/xml_schema/src/xml_schema_simple_type_union.c Wed May 31 22:18:45 2006
@@ -50,62 +50,62 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_xml_schema_simple_type_union_free(void *simple_type_union,
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_simple_type_union_type(void *simple_type_union,
-                                        axis2_env_t **env);
+                                        const axis2_env_t *env);
 
 axis2_hash_t *AXIS2_CALL
 axis2_xml_schema_simple_type_union_super_objs(void *simple_type_union,
-                                        axis2_env_t **env);
+                                        const axis2_env_t *env);
                                         
 
 axis2_xml_schema_simple_type_content_t *AXIS2_CALL
 axis2_xml_schema_simple_type_union_get_base_impl(void *simple_type_union,
-                                        axis2_env_t **env);                                     
+                                        const axis2_env_t *env);                                     
                                                                                    
 
 axis2_xml_schema_obj_collection_t* AXIS2_CALL
 axis2_xml_schema_simple_type_union_get_base_types(void *simple_type_union,
-                                            axis2_env_t **env);
+                                            const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_union_set_member_types_source(void *simple_type_union,
-                             axis2_env_t **env,
+                             const axis2_env_t *env,
                              axis2_char_t *member_types_source);
 
 axis2_char_t* AXIS2_CALL
 axis2_xml_schema_simple_type_union_get_member_types_source
                             (void *simple_type_union,
-                             axis2_env_t **env);
+                             const axis2_env_t *env);
 
 axis2_array_list_t* AXIS2_CALL
 axis2_xml_schema_simple_type_union_get_member_types_qnames(
         void *simple_type_union,
-        axis2_env_t **env);
+        const axis2_env_t *env);
         
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_union_set_member_types_qnames(
         void *simple_type_union,
-        axis2_env_t **env,
+        const axis2_env_t *env,
         axis2_array_list_t *qns);        
 
 /*************** function prototypes *****************************************/
 
 AXIS2_EXTERN axis2_xml_schema_simple_type_union_t * AXIS2_CALL
-axis2_xml_schema_simple_type_union_create(axis2_env_t **env)
+axis2_xml_schema_simple_type_union_create(const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_union_impl_t *simple_type_union_impl = NULL;
     axis2_xml_schema_annotated_t *annotated = NULL;
     axis2_status_t status = AXIS2_FAILURE;
 
-    simple_type_union_impl = AXIS2_MALLOC((*env)->allocator, 
+    simple_type_union_impl = AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_simple_type_union_impl_t));
     
     if(!simple_type_union_impl)
     {
-        AXIS2_ERROR_SET((*env)->error, 
+        AXIS2_ERROR_SET(env->error, 
             AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
@@ -120,14 +120,14 @@
     
     
     simple_type_union_impl->simple_type_union.ops = 
-        AXIS2_MALLOC((*env)->allocator, 
+        AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_simple_type_union_ops_t));
 
     if(!simple_type_union_impl->simple_type_union.ops)
     {
         axis2_xml_schema_simple_type_union_free(
             &(simple_type_union_impl->simple_type_union), env);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     
@@ -158,7 +158,7 @@
     {
         axis2_xml_schema_simple_type_union_free(
             &(simple_type_union_impl->simple_type_union), env);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     axis2_hash_set(simple_type_union_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
@@ -224,7 +224,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_union_free(void *simple_type_union,
-                                    axis2_env_t **env)
+                                    const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_union_impl_t *simple_type_union_impl = NULL;
 
@@ -250,20 +250,20 @@
     
     if(NULL != simple_type_union_impl->simple_type_union.ops)
     {
-        AXIS2_FREE((*env)->allocator, 
+        AXIS2_FREE(env->allocator, 
             simple_type_union_impl->simple_type_union.ops);
         simple_type_union_impl->simple_type_union.ops = NULL;
     }
     if(NULL != simple_type_union_impl->simple_type_union.base.ops)
     {
-        AXIS2_FREE((*env)->allocator, 
+        AXIS2_FREE(env->allocator, 
             simple_type_union_impl->simple_type_union.base.ops);
         simple_type_union_impl->simple_type_union.base.ops = NULL;
     }
     
     if(NULL != simple_type_union_impl)
     {
-        AXIS2_FREE((*env)->allocator, simple_type_union_impl);
+        AXIS2_FREE(env->allocator, simple_type_union_impl);
         simple_type_union_impl = NULL;
     }
     return AXIS2_SUCCESS;
@@ -271,7 +271,7 @@
 
 axis2_xml_schema_simple_type_content_t *AXIS2_CALL
 axis2_xml_schema_simple_type_union_get_base_impl(void *simple_type_union,
-                                axis2_env_t **env)
+                                const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_union_impl_t *simple_type_union_impl = NULL;
 
@@ -285,24 +285,24 @@
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_union_resolve_methods(
                     axis2_xml_schema_simple_type_union_t *simple_type_union,
-                    axis2_env_t **env,
+                    const axis2_env_t *env,
                     axis2_xml_schema_simple_type_union_t *simple_type_union_impl,
                     axis2_hash_t *methods)
 {
     axis2_xml_schema_simple_type_union_impl_t *simple_type_union_impl_l = NULL;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, simple_type_union_impl, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, simple_type_union_impl, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
     
     simple_type_union_impl_l = 
         (axis2_xml_schema_simple_type_union_impl_t *) simple_type_union_impl;
     
-    simple_type_union->ops = AXIS2_MALLOC((*env)->allocator, 
+    simple_type_union->ops = AXIS2_MALLOC(env->allocator, 
             sizeof(axis2_xml_schema_simple_type_union_ops_t));
     if(NULL != simple_type_union->ops)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return AXIS2_FAILURE;
     }            
     
@@ -330,7 +330,7 @@
 
 axis2_xml_schema_obj_collection_t* AXIS2_CALL
 axis2_xml_schema_simple_type_union_get_base_types(void *simple_type_union,
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return 
@@ -339,7 +339,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_union_set_member_types_source(void *simple_type_union,
-                             axis2_env_t **env,
+                             const axis2_env_t *env,
                              axis2_char_t *member_types_source)
 
 {
@@ -360,7 +360,7 @@
 axis2_char_t* AXIS2_CALL
 axis2_xml_schema_simple_type_union_get_member_types_source
                             (void *simple_type_union,
-                             axis2_env_t **env)
+                             const axis2_env_t *env)
 {
     AXIS2_ENV_CHECK(env, NULL);
     return AXIS2_INTF_TO_IMPL(simple_type_union)->member_types_source;
@@ -369,7 +369,7 @@
 
 axis2_array_list_t* AXIS2_CALL
 axis2_xml_schema_simple_type_union_get_member_types_qnames(void *simple_type_union,
-                                                           axis2_env_t **env)
+                                                           const axis2_env_t *env)
 {
     axis2_xml_schema_simple_type_union_impl_t *sim_type_res_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -378,14 +378,14 @@
 
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_simple_type_union_type(void *simple_type_union,
-                                        axis2_env_t **env)
+                                        const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(simple_type_union)->obj_type;
 }                                        
 
 axis2_hash_t *AXIS2_CALL
 axis2_xml_schema_simple_type_union_super_objs(void *simple_type_union,
-                                        axis2_env_t **env)
+                                        const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(simple_type_union)->ht_super;
 }                                        
@@ -393,11 +393,11 @@
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_simple_type_union_set_member_types_qnames(
         void *simple_type_union,
-        axis2_env_t **env,
+        const axis2_env_t *env,
         axis2_array_list_t *qns)
 {
     axis2_xml_schema_simple_type_union_impl_t *sim_type_union_impl = NULL;
-    AXIS2_PARAM_CHECK((*env)->error, qns, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, qns, AXIS2_FAILURE);
     sim_type_union_impl = AXIS2_INTF_TO_IMPL(simple_type_union);
     sim_type_union_impl->member_types_qnames = qns;
     return AXIS2_FAILURE;

Modified: webservices/axis2/trunk/c/xml_schema/src/xml_schema_type.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/xml_schema/src/xml_schema_type.c?rev=410750&r1=410749&r2=410750&view=diff
==============================================================================
--- webservices/axis2/trunk/c/xml_schema/src/xml_schema_type.c (original)
+++ webservices/axis2/trunk/c/xml_schema/src/xml_schema_type.c Wed May 31 22:18:45 2006
@@ -68,81 +68,81 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_xml_schema_type_free(void *type,
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 
 axis2_xml_schema_annotated_t *AXIS2_CALL
 axis2_xml_schema_type_get_base_impl(void *type,
-                                        axis2_env_t **env);
+                                        const axis2_env_t *env);
                                         
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_type_type(void *type,
-                           axis2_env_t **env); 
+                           const axis2_env_t *env); 
                                         
 axis2_hash_t*  AXIS2_CALL
 axis2_xml_schema_type_super_objs(void *type,
-                                axis2_env_t **env);                                                                               
+                                const axis2_env_t *env);                                                                               
 
 void *AXIS2_CALL
 axis2_xml_schema_type_get_base_schema_type(void *type,
-                                            axis2_env_t **env);
+                                            const axis2_env_t *env);
 
 axis2_xml_schema_data_type_t *AXIS2_CALL
 axis2_xml_schema_type_get_data_type(void *type,
-                                        axis2_env_t **env);
+                                        const axis2_env_t *env);
 
 axis2_xml_schema_derivation_method_t *AXIS2_CALL
 axis2_xml_schema_type_get_derive_by(void *type,
-                                    axis2_env_t **env);
+                                    const axis2_env_t *env);
 
 axis2_xml_schema_derivation_method_t *AXIS2_CALL
 axis2_xml_schema_type_get_final(void *type,
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_type_set_final(void *type,
-                        axis2_env_t **env,
+                        const axis2_env_t *env,
                         axis2_xml_schema_derivation_method_t *final_derivation);
 
 axis2_xml_schema_derivation_method_t *AXIS2_CALL
 axis2_xml_schema_type_get_final_resolved(void *type,
-                                            axis2_env_t **env);
+                                            const axis2_env_t *env);
 
 axis2_bool_t AXIS2_CALL
 axis2_xml_schema_type_is_mixed(void *type,
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_type_set_mixed(void *type,
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_bool_t is_mixed); 
 
 axis2_char_t *AXIS2_CALL
 axis2_xml_schema_type_get_name(void *type,
-                                axis2_env_t **env); 
+                                const axis2_env_t *env); 
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_type_set_name(void *type,
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_char_t *name); 
 
 axis2_qname_t *AXIS2_CALL
 axis2_xml_schema_type_get_qname(void *type,
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
                                 
 /************************** end       ****************************************/                                
 
 AXIS2_EXTERN axis2_xml_schema_type_t * AXIS2_CALL
-axis2_xml_schema_type_create(axis2_env_t **env,
+axis2_xml_schema_type_create(const axis2_env_t *env,
                                 axis2_xml_schema_t *schema)
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
     axis2_status_t status = AXIS2_FAILURE;
 
-    type_impl = AXIS2_MALLOC((*env)->allocator, 
+    type_impl = AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_type_impl_t));
     if(!type_impl)
     {
-        AXIS2_ERROR_SET((*env)->error,
+        AXIS2_ERROR_SET(env->error,
             AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
@@ -162,14 +162,14 @@
     type_impl->obj_type = AXIS2_XML_SCHEMA_TYPE;
     type_impl->schema = schema;
 
-    type_impl->type.ops = AXIS2_MALLOC((*env)->allocator, 
+    type_impl->type.ops = AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_type_ops_t));
 
 
     if(!type_impl->type.ops)
     {
         axis2_xml_schema_type_free(&(type_impl->type), env);
-        AXIS2_ERROR_SET((*env)->error,
+        AXIS2_ERROR_SET(env->error,
             AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
@@ -209,7 +209,7 @@
     if(!type_impl->methods)
     {
         axis2_xml_schema_type_free(&(type_impl->type), env);
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
 
@@ -282,7 +282,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_type_free(void *type,
-                                    axis2_env_t **env)
+                                    const axis2_env_t *env)
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
 
@@ -303,22 +303,22 @@
     
     if(NULL != type_impl->type.ops)
     {
-        AXIS2_FREE((*env)->allocator, type_impl->type.ops);
+        AXIS2_FREE(env->allocator, type_impl->type.ops);
         type_impl->type.ops = NULL;
     }
     if(NULL != type_impl->type.base.ops)
     {
-        AXIS2_FREE((*env)->allocator, type_impl->type.base.ops);
+        AXIS2_FREE(env->allocator, type_impl->type.base.ops);
         type_impl->type.base.ops = NULL;
     }
-    AXIS2_FREE((*env)->allocator, type_impl);
+    AXIS2_FREE(env->allocator, type_impl);
     type_impl = NULL;
     return AXIS2_SUCCESS;
 }
 
 axis2_xml_schema_annotated_t *AXIS2_CALL
 axis2_xml_schema_type_get_base_impl(void *type,
-                                axis2_env_t **env)
+                                const axis2_env_t *env)
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -329,23 +329,23 @@
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_xml_schema_type_resolve_methods(
                                 axis2_xml_schema_type_t *type,
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_xml_schema_type_t *type_impl,
                                 axis2_hash_t *methods)
 {
     axis2_xml_schema_type_impl_t *sch_type_impl = NULL;
 
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, type_impl, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, methods, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, type_impl, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, methods, AXIS2_FAILURE);
     
     sch_type_impl = (axis2_xml_schema_type_impl_t *) type_impl;
     
-    type->ops = AXIS2_MALLOC((*env)->allocator, 
+    type->ops = AXIS2_MALLOC(env->allocator, 
             sizeof(axis2_xml_schema_type_ops_t));
     if(!type->ops)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return AXIS2_FAILURE;     
     }       
             
@@ -429,7 +429,7 @@
 
 void *AXIS2_CALL
 axis2_xml_schema_type_get_base_schema_type(void *type,
-                                            axis2_env_t **env)
+                                            const axis2_env_t *env)
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
     axis2_hash_t *ht_super = NULL;
@@ -447,7 +447,7 @@
 
 axis2_xml_schema_data_type_t *AXIS2_CALL
 axis2_xml_schema_type_get_data_type(void *type,
-                                    axis2_env_t **env)
+                                    const axis2_env_t *env)
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
     axis2_hash_t *ht_super = NULL;
@@ -465,7 +465,7 @@
 
 axis2_xml_schema_derivation_method_t *AXIS2_CALL
 axis2_xml_schema_type_get_derive_by(void *type,
-                                    axis2_env_t **env)
+                                    const axis2_env_t *env)
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
     axis2_hash_t *ht_super = NULL;
@@ -483,7 +483,7 @@
 
 axis2_xml_schema_derivation_method_t *AXIS2_CALL
 axis2_xml_schema_type_get_final(void *type,
-                                axis2_env_t **env)
+                                const axis2_env_t *env)
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
     axis2_hash_t *ht_super = NULL;
@@ -501,13 +501,13 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_type_set_final(void *type,
-                            axis2_env_t **env,
+                            const axis2_env_t *env,
                             axis2_xml_schema_derivation_method_t *final_derivation)
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
     axis2_hash_t *ht_super = NULL;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, final_derivation, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, final_derivation, AXIS2_FAILURE);
     ht_super = AXIS2_XML_SCHEMA_TYPE_SUPER_OBJS(type, env);
     if(NULL != ht_super)
     {
@@ -527,7 +527,7 @@
 
 axis2_xml_schema_derivation_method_t *AXIS2_CALL
 axis2_xml_schema_type_get_final_resolved(void *type,
-                                            axis2_env_t **env) 
+                                            const axis2_env_t *env) 
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
     axis2_hash_t *ht_super = NULL;
@@ -546,7 +546,7 @@
 
 axis2_bool_t AXIS2_CALL
 axis2_xml_schema_type_is_mixed(void *type,
-                                axis2_env_t **env) 
+                                const axis2_env_t *env) 
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
     axis2_hash_t *ht_super = NULL;
@@ -564,7 +564,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_type_set_mixed(void *type,
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_bool_t is_mixed) 
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
@@ -583,7 +583,7 @@
 
 axis2_char_t *AXIS2_CALL
 axis2_xml_schema_type_get_name(void *type,
-                                axis2_env_t **env) 
+                                const axis2_env_t *env) 
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
     axis2_hash_t *ht_super = NULL;
@@ -601,13 +601,13 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_type_set_name(void *type,
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_char_t *name) 
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
     axis2_hash_t *ht_super = NULL;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-    AXIS2_PARAM_CHECK((*env)->error, name, AXIS2_FAILURE);
+    AXIS2_PARAM_CHECK(env->error, name, AXIS2_FAILURE);
     ht_super = AXIS2_XML_SCHEMA_TYPE_SUPER_OBJS(type, env);
     if(NULL != ht_super)
     {
@@ -618,7 +618,7 @@
     }
     if(NULL != type_impl->name)
     {
-        AXIS2_FREE((*env)->allocator, type_impl->name);
+        AXIS2_FREE(env->allocator, type_impl->name);
         type_impl->name = NULL;
     }
     type_impl->name = AXIS2_STRDUP(name, env);
@@ -631,7 +631,7 @@
 
 axis2_qname_t *AXIS2_CALL
 axis2_xml_schema_type_get_qname(void *type,
-                                axis2_env_t **env) 
+                                const axis2_env_t *env) 
 {
     axis2_xml_schema_type_impl_t *type_impl = NULL;
     axis2_hash_t *ht_super = NULL;
@@ -667,14 +667,14 @@
 
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_type_type(void *type,
-                           axis2_env_t **env)
+                           const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(type)->obj_type;
 }                           
                                         
 axis2_hash_t*  AXIS2_CALL
 axis2_xml_schema_type_super_objs(void *type,
-                                axis2_env_t **env)
+                                const axis2_env_t *env)
 {
     return AXIS2_INTF_TO_IMPL(type)->ht_super;
 }                                

Modified: webservices/axis2/trunk/c/xml_schema/src/xml_schema_use.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/xml_schema/src/xml_schema_use.c?rev=410750&r1=410749&r2=410750&view=diff
==============================================================================
--- webservices/axis2/trunk/c/xml_schema/src/xml_schema_use.c (original)
+++ webservices/axis2/trunk/c/xml_schema/src/xml_schema_use.c Wed May 31 22:18:45 2006
@@ -42,46 +42,46 @@
 
 axis2_status_t AXIS2_CALL 
 axis2_xml_schema_use_free(void *use,
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 
 axis2_hash_t *AXIS2_CALL 
 axis2_xml_schema_use_super_objs(
         void *use,
-        axis2_env_t **env);
+        const axis2_env_t *env);
 
 axis2_xml_schema_types_t AXIS2_CALL 
 axis2_xml_schema_use_type(
         void *use,
-        axis2_env_t **env);
+        const axis2_env_t *env);
 
 axis2_xml_schema_enum_t *AXIS2_CALL
 axis2_xml_schema_use_get_base_impl(void *use,
-                                axis2_env_t **env);
+                                const axis2_env_t *env);
 
 AXIS2_EXTERN axis2_status_t AXIS2_CALL
 axis2_xml_schema_use_resolve_methods(
                                 axis2_xml_schema_use_t *use,
-                                axis2_env_t **env,
+                                const axis2_env_t *env,
                                 axis2_xml_schema_use_t *use_impl,
                                 axis2_hash_t *methods);
 
 axis2_array_list_t * AXIS2_CALL
 axis2_xml_schema_use_get_values(void *use,
-                        axis2_env_t **env);
+                        const axis2_env_t *env);
 
 
 AXIS2_EXTERN axis2_xml_schema_use_t * AXIS2_CALL
-axis2_xml_schema_use_create(axis2_env_t **env,
+axis2_xml_schema_use_create(const axis2_env_t *env,
                             axis2_char_t *value)
 {
     axis2_xml_schema_use_impl_t *use_impl = NULL;
     axis2_status_t status = AXIS2_FAILURE;
     
-    use_impl = AXIS2_MALLOC((*env)->allocator, 
+    use_impl = AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_use_impl_t));
     if(!use_impl)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }                    
 
@@ -91,13 +91,13 @@
     use_impl->methods = NULL;
     use_impl->members = NULL;
     use_impl->use.base.ops = NULL;
-    use_impl->use.ops = AXIS2_MALLOC((*env)->allocator, 
+    use_impl->use.ops = AXIS2_MALLOC(env->allocator, 
                     sizeof(axis2_xml_schema_use_ops_t));
     if(!use_impl->use.ops)
     {
         axis2_xml_schema_use_free(&(use_impl->use), env);
         
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     use_impl->use.ops->free = axis2_xml_schema_use_free;
@@ -122,7 +122,7 @@
     use_impl->methods = axis2_hash_make(env);
     if(!use_impl->methods)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     axis2_hash_set(use_impl->methods, "free", AXIS2_HASH_KEY_STRING, 
@@ -142,7 +142,7 @@
     use_impl->ht_super = axis2_hash_make(env);
     if(!use_impl->ht_super)
     {
-        AXIS2_ERROR_SET((*env)->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
         return NULL;
     }
     axis2_hash_set(use_impl->ht_super, "AXIS2_XML_SCHEMA_USE", AXIS2_HASH_KEY_STRING, 
@@ -159,7 +159,7 @@
 
 axis2_status_t AXIS2_CALL
 axis2_xml_schema_use_free(void *use,
-                                    axis2_env_t **env)
+                                    const axis2_env_t *env)
 {
     axis2_xml_schema_use_impl_t *use_impl = NULL;
 
@@ -177,7 +177,7 @@
             value =(axis2_char_t* ) AXIS2_ARRAY_LIST_GET(use_impl->members, env, i);
             if(NULL != value)
             {
-                AXIS2_FREE((*env)->allocator, value);
+                AXIS2_FREE(env->allocator, value);
                 value = NULL;
             }
         }
@@ -204,17 +204,17 @@
     }
     if(NULL != use_impl->use.base.ops)
     {
-        AXIS2_FREE((*env)->allocator, use_impl->use.base.ops);
+        AXIS2_FREE(env->allocator, use_impl->use.base.ops);
         use_impl->use.base.ops = NULL;
     }
 
     if(NULL != use_impl->use.ops)
     {
-        AXIS2_FREE((*env)->allocator, use_impl->use.ops);
+        AXIS2_FREE(env->allocator, use_impl->use.ops);
         use_impl->use.ops = NULL;
     }
 
-    AXIS2_FREE((*env)->allocator, use_impl);
+    AXIS2_FREE(env->allocator, use_impl);
     use_impl = NULL;
     return AXIS2_SUCCESS;
 }
@@ -222,7 +222,7 @@
 axis2_hash_t *AXIS2_CALL
 axis2_xml_schema_use_super_objs(
         void *use,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     axis2_xml_schema_use_impl_t *use_impl = NULL;
     AXIS2_ENV_CHECK(env, NULL);
@@ -233,7 +233,7 @@
 axis2_xml_schema_types_t AXIS2_CALL
 axis2_xml_schema_use_type(
         void *use,
-        axis2_env_t **env)
+        const axis2_env_t *env)
 {
     axis2_xml_schema_use_impl_t *use_impl = NULL;
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
@@ -243,7 +243,7 @@
 
 axis2_xml_schema_enum_t *AXIS2_CALL
 axis2_xml_schema_use_get_base_impl(void *use,
-                                axis2_env_t **env)
+                                const axis2_env_t *env)
 {
     axis2_xml_schema_use_impl_t *use_impl = NULL;
 
@@ -255,7 +255,7 @@
 
 axis2_array_list_t *AXIS2_CALL
 axis2_xml_schema_use_get_values(void *use,
-                                        axis2_env_t **env)
+                                        const axis2_env_t *env)
 {
     axis2_xml_schema_use_impl_t *use_impl = NULL;
     axis2_hash_t *super = NULL;



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message