You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by se...@apache.org on 2008/03/19 13:19:22 UTC

svn commit: r638811 - in /webservices/axis2/trunk/c: axiom/src/attachments/ include/ src/core/transport/http/common/ src/core/transport/http/sender/ src/core/transport/http/sender/libcurl/

Author: senaka
Date: Wed Mar 19 05:19:12 2008
New Revision: 638811

URL: http://svn.apache.org/viewvc?rev=638811&view=rev
Log:
Axis2/C Hackathon: Improving code

Modified:
    webservices/axis2/trunk/c/axiom/src/attachments/axiom_mime_output.h
    webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c
    webservices/axis2/trunk/c/axiom/src/attachments/mime_body_part.c
    webservices/axis2/trunk/c/axiom/src/attachments/mime_output.c
    webservices/axis2/trunk/c/include/axis2_http_transport.h
    webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c
    webservices/axis2/trunk/c/src/core/transport/http/common/simple_http_svr_conn.c
    webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c
    webservices/axis2/trunk/c/src/core/transport/http/sender/libcurl/axis2_libcurl.c

Modified: webservices/axis2/trunk/c/axiom/src/attachments/axiom_mime_output.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/axiom_mime_output.h?rev=638811&r1=638810&r2=638811&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/axiom_mime_output.h (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/axiom_mime_output.h Wed Mar 19 05:19:12 2008
@@ -1,4 +1,3 @@
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -37,10 +36,7 @@
 {
 #endif
 
-    /* This should be moved to header file later axutil_utils_defines.h*/
-#define axis2_byte_t char
-
-    typedef struct axiom_mime_output axiom_mime_output_t;
+    typedef void axiom_mime_output_t;
 
     /** @defgroup axiom_mime_output Flow
       * @ingroup axiom_mime_output
@@ -61,7 +57,6 @@
         const axis2_char_t * soap_content_type);
 
     AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
-
     axiom_mime_output_get_content_type_for_mime(
         axiom_mime_output_t * mime_output,
         const axutil_env_t * env,

Modified: webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c?rev=638811&r1=638810&r2=638811&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c Wed Mar 19 05:19:12 2008
@@ -43,7 +43,8 @@
     if (!data_handler)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Not enough memory");
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+            "No memory. Cannot create data handler");
         return NULL;
     }
 
@@ -185,7 +186,8 @@
             {
                 AXIS2_ERROR_SET(env->error,
                     AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Not enough memory");
+                AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+                    "No memory. Cannot create binary stream");
                 if (byte_stream)
                 {
                     AXIS2_FREE(env->allocator, byte_stream);
@@ -226,7 +228,7 @@
                         AXIS2_ERROR_SET(env->error,
                             AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
                         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, 
-                            "Not enough memory");
+                            "No memory. Cannot create binary stream");
                         if (read_stream)
                         {
                             AXIS2_FREE(env->allocator, read_stream);

Modified: webservices/axis2/trunk/c/axiom/src/attachments/mime_body_part.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/mime_body_part.c?rev=638811&r1=638810&r2=638811&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/mime_body_part.c (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/mime_body_part.c Wed Mar 19 05:19:12 2008
@@ -39,7 +39,8 @@
     if (!mime_body_part)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Not enough memory");
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+            "No memory. Cannot create MIME body part");
         return NULL;
     }
 
@@ -193,7 +194,8 @@
     if (!byte_stream)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
-        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Not enough memory");
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+            "No memory. Cannot create binary stream");
 
         if (header_str)
         {

Modified: webservices/axis2/trunk/c/axiom/src/attachments/mime_output.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/mime_output.c?rev=638811&r1=638810&r2=638811&view=diff
==============================================================================
--- webservices/axis2/trunk/c/axiom/src/attachments/mime_output.c (original)
+++ webservices/axis2/trunk/c/axiom/src/attachments/mime_output.c Wed Mar 19 05:19:12 2008
@@ -1,4 +1,3 @@
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -17,69 +16,65 @@
  */
 
 #include "axiom_mime_output.h"
-#include "axiom_data_handler.h"
+#include <axiom_data_handler.h>
 #include "axiom_mime_body_part.h"
 #include <axutil_string.h>
 #include <axiom_text.h>
 #include <axiom_mime_const.h>
 
-struct axiom_mime_output
-{
-    int dummy;
-};
-
 static axis2_status_t axis2_char_2_byte(
-    const axutil_env_t * env,
-    axis2_char_t * char_buffer,
-    axis2_byte_t ** byte_buffer,
+    const axutil_env_t *env,
+    axis2_char_t *char_buffer,
+    axis2_byte_t **byte_buffer,
     int *byte_buffer_size);
 
 static axiom_mime_body_part_t *axis2_create_mime_body_part(
-    axiom_text_t * text,
-    const axutil_env_t * env);
+    axiom_text_t *text,
+    const axutil_env_t *env);
 
 static axis2_status_t axis2_write_body_part(
-    axiom_mime_output_t * mime_output,
-    const axutil_env_t * env,
-    axis2_byte_t ** output_stream,
+    axiom_mime_output_t *mime_output,
+    const axutil_env_t *env,
+    axis2_byte_t **output_stream,
     int *output_stream_size,
-    axiom_mime_body_part_t * part,
-    axis2_char_t * boundary);
+    axiom_mime_body_part_t *part,
+    axis2_char_t *boundary);
 
 static axis2_status_t axis2_write_mime_boundary(
-    axiom_mime_output_t * mime_output,
-    const axutil_env_t * env,
-    axis2_byte_t ** output_stream,
+    axiom_mime_output_t *mime_output,
+    const axutil_env_t *env,
+    axis2_byte_t **output_stream,
     int *output_stream_size,
-    axis2_char_t * boundary);
+    axis2_char_t *boundary);
 
 static axis2_status_t axis2_write_finish_writing_mime(
-    axiom_mime_output_t * mime_output,
-    const axutil_env_t * env,
-    axis2_byte_t ** output_stream,
+    axiom_mime_output_t *mime_output,
+    const axutil_env_t *env,
+    axis2_byte_t **output_stream,
     int *output_stream_size,
-    axis2_char_t * boundary);
+    axis2_char_t *boundary);
 
 static axis2_status_t axis2_start_writing_mime(
-    axiom_mime_output_t * mime_output,
-    const axutil_env_t * env,
-    axis2_byte_t ** output_stream,
+    axiom_mime_output_t *mime_output,
+    const axutil_env_t *env,
+    axis2_byte_t **output_stream,
     int *output_stream_size,
-    axis2_char_t * boundary);
+    axis2_char_t *boundary);
 
 AXIS2_EXTERN axiom_mime_output_t *AXIS2_CALL
 axiom_mime_output_create(
-    const axutil_env_t * env)
+    const axutil_env_t *env)
 {
     axiom_mime_output_t *mime_output = NULL;
     AXIS2_ENV_CHECK(env, NULL);
     mime_output = (axiom_mime_output_t *) AXIS2_MALLOC(env->allocator,
-                                                       sizeof
-                                                       (axiom_mime_output_t));
+        sizeof(axiom_mime_output_t));
 
     if (!mime_output)
     {
         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
+        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
+            "No memory. Cannot create MIME output");
         return NULL;
     }
 
@@ -88,11 +83,9 @@
 
 AXIS2_EXTERN void AXIS2_CALL
 axiom_mime_output_free(
-    axiom_mime_output_t * mime_output,
-    const axutil_env_t * env)
+    axiom_mime_output_t *mime_output,
+    const axutil_env_t *env)
 {
-    AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
-
     if (mime_output)
     {
         AXIS2_FREE(env->allocator, mime_output);
@@ -103,16 +96,16 @@
 
 AXIS2_EXTERN axis2_byte_t *AXIS2_CALL
 axiom_mime_output_complete(
-    axiom_mime_output_t * mime_output,
-    const axutil_env_t * env,
-    axis2_byte_t ** output_stream,
+    axiom_mime_output_t *mime_output,
+    const axutil_env_t *env,
+    axis2_byte_t **output_stream,
     int *output_stream_size,
-    axis2_char_t * soap_body_buffer,
-    axutil_array_list_t * binary_node_list,
-    axis2_char_t * boundary,
-    axis2_char_t * content_id,
-    axis2_char_t * char_set_encoding,
-    const axis2_char_t * soap_content_type)
+    axis2_char_t *soap_body_buffer,
+    axutil_array_list_t *binary_node_list,
+    axis2_char_t *boundary,
+    axis2_char_t *content_id,
+    axis2_char_t *char_set_encoding,
+    const axis2_char_t *soap_content_type)
 {
     axis2_status_t status = AXIS2_FAILURE;
     axis2_char_t *header_value = NULL;
@@ -316,11 +309,11 @@
 
 static axis2_status_t
 axis2_start_writing_mime(
-    axiom_mime_output_t * mime_output,
-    const axutil_env_t * env,
-    axis2_byte_t ** output_stream,
+    axiom_mime_output_t *mime_output,
+    const axutil_env_t *env,
+    axis2_byte_t **output_stream,
     int *output_stream_size,
-    axis2_char_t * boundary)
+    axis2_char_t *boundary)
 {
     AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
     return axis2_write_mime_boundary(mime_output, env, output_stream,
@@ -329,11 +322,11 @@
 
 static axis2_status_t
 axis2_write_mime_boundary(
-    axiom_mime_output_t * mime_output,
-    const axutil_env_t * env,
-    axis2_byte_t ** output_stream,
+    axiom_mime_output_t *mime_output,
+    const axutil_env_t *env,
+    axis2_byte_t **output_stream,
     int *output_stream_size,
-    axis2_char_t * boundary)
+    axis2_char_t *boundary)
 {
     axis2_byte_t *byte_buffer = NULL;
     axis2_byte_t *byte_stream = NULL;
@@ -371,8 +364,8 @@
 
 static axiom_mime_body_part_t *
 axis2_create_mime_body_part(
-    axiom_text_t * text,
-    const axutil_env_t * env)
+    axiom_text_t *text,
+    const axutil_env_t *env)
 {
     axiom_data_handler_t *data_handler = NULL;
     const axis2_char_t *content_type = "application/octet-stream";
@@ -410,12 +403,12 @@
 
 static axis2_status_t
 axis2_write_body_part(
-    axiom_mime_output_t * mime_output,
-    const axutil_env_t * env,
-    axis2_byte_t ** output_stream,
+    axiom_mime_output_t *mime_output,
+    const axutil_env_t *env,
+    axis2_byte_t **output_stream,
     int *output_stream_size,
-    axiom_mime_body_part_t * part,
-    axis2_char_t * boundary)
+    axiom_mime_body_part_t *part,
+    axis2_char_t *boundary)
 {
     axis2_byte_t *byte_buffer = NULL;
     axis2_byte_t *byte_stream = NULL;
@@ -467,11 +460,11 @@
 
 static axis2_status_t
 axis2_write_finish_writing_mime(
-    axiom_mime_output_t * mime_output,
-    const axutil_env_t * env,
-    axis2_byte_t ** output_stream,
+    axiom_mime_output_t *mime_output,
+    const axutil_env_t *env,
+    axis2_byte_t **output_stream,
     int *output_stream_size,
-    axis2_char_t * boundary)
+    axis2_char_t *boundary)
 {
     axis2_byte_t *byte_buffer;
     axis2_byte_t *byte_stream;
@@ -506,12 +499,12 @@
 
 AXIS2_EXTERN const axis2_char_t *AXIS2_CALL
 axiom_mime_output_get_content_type_for_mime(
-    axiom_mime_output_t * mime_output,
-    const axutil_env_t * env,
-    axis2_char_t * boundary,
-    axis2_char_t * content_id,
-    axis2_char_t * char_set_encoding,
-    const axis2_char_t * soap_content_type)
+    axiom_mime_output_t *mime_output,
+    const axutil_env_t *env,
+    axis2_char_t *boundary,
+    axis2_char_t *content_id,
+    axis2_char_t *char_set_encoding,
+    const axis2_char_t *soap_content_type)
 {
     axis2_char_t *content_type_string = NULL;
     axis2_char_t *temp_content_type_string = NULL;
@@ -600,9 +593,9 @@
 
 static axis2_status_t
 axis2_char_2_byte(
-    const axutil_env_t * env,
-    axis2_char_t * char_buffer,
-    axis2_byte_t ** byte_buffer,
+    const axutil_env_t *env,
+    axis2_char_t *char_buffer,
+    axis2_byte_t **byte_buffer,
     int *byte_buffer_size)
 {
     int length;

Modified: webservices/axis2/trunk/c/include/axis2_http_transport.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/include/axis2_http_transport.h?rev=638811&r1=638810&r2=638811&view=diff
==============================================================================
--- webservices/axis2/trunk/c/include/axis2_http_transport.h (original)
+++ webservices/axis2/trunk/c/include/axis2_http_transport.h Wed Mar 19 05:19:12 2008
@@ -559,7 +559,7 @@
     /**
      * HEADER APPLICATION_XML
      */
-#define AXIS2_HTTP_HEADER_APPLICATION_XML "application/xml"
+#define AXIS2_HTTP_HEADER_ACCEPT_APPLICATION_XML "application/xml"
 
     /**
      * HEADER_ACCEPT_TEXT_XML
@@ -579,7 +579,7 @@
     /**
      * HEADER XOP XML
      */
-#define AXIS2_HTTP_HEADER_XOP_XML "application/xop+xml"
+#define AXIS2_HTTP_HEADER_ACCEPT_XOP_XML "application/xop+xml"
 
     /**
      * HEADER_ACCEPT_MULTIPART_RELATED

Modified: webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c?rev=638811&r1=638810&r2=638811&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c Wed Mar 19 05:19:12 2008
@@ -575,7 +575,7 @@
                                                                         url_external_form);
                 cont_type = axis2_http_header_create(env,
                                                      AXIS2_HTTP_HEADER_CONTENT_TYPE,
-                                                     AXIS2_HTTP_HEADER_APPLICATION_XML);
+                                                     AXIS2_HTTP_HEADER_ACCEPT_APPLICATION_XML);
                 axis2_http_simple_response_set_header(response, env, cont_type);
             }
             else if (env->error->error_number == AXIS2_ERROR_SVC_OR_OP_NOT_FOUND)

Modified: webservices/axis2/trunk/c/src/core/transport/http/common/simple_http_svr_conn.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/common/simple_http_svr_conn.c?rev=638811&r1=638810&r2=638811&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/common/simple_http_svr_conn.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/common/simple_http_svr_conn.c Wed Mar 19 05:19:12 2008
@@ -312,7 +312,7 @@
     if (content_type)
     {
         if (strstr(content_type, AXIS2_HTTP_HEADER_ACCEPT_MULTIPART_RELATED)
-            && strstr(content_type, AXIS2_HTTP_HEADER_XOP_XML))
+            && strstr(content_type, AXIS2_HTTP_HEADER_ACCEPT_XOP_XML))
             binary_content = AXIS2_TRUE;
     }
     if (!response_writer)

Modified: webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c?rev=638811&r1=638810&r2=638811&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c Wed Mar 19 05:19:12 2008
@@ -1256,7 +1256,7 @@
     if (content_type)
     {
         if (strstr (content_type, AXIS2_HTTP_HEADER_ACCEPT_MULTIPART_RELATED)
-            && strstr (content_type, AXIS2_HTTP_HEADER_XOP_XML))
+            && strstr (content_type, AXIS2_HTTP_HEADER_ACCEPT_XOP_XML))
         {
             axis2_ctx_t *axis_ctx =
                 axis2_op_ctx_get_base (axis2_msg_ctx_get_op_ctx (msg_ctx, env),

Modified: webservices/axis2/trunk/c/src/core/transport/http/sender/libcurl/axis2_libcurl.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/transport/http/sender/libcurl/axis2_libcurl.c?rev=638811&r1=638810&r2=638811&view=diff
==============================================================================
--- webservices/axis2/trunk/c/src/core/transport/http/sender/libcurl/axis2_libcurl.c (original)
+++ webservices/axis2/trunk/c/src/core/transport/http/sender/libcurl/axis2_libcurl.c Wed Mar 19 05:19:12 2008
@@ -518,7 +518,7 @@
     if (content_type)
     {    
         if (strstr (content_type, AXIS2_HTTP_HEADER_ACCEPT_MULTIPART_RELATED)
-            && strstr (content_type, AXIS2_HTTP_HEADER_XOP_XML))
+            && strstr (content_type, AXIS2_HTTP_HEADER_ACCEPT_XOP_XML))
         {
             axis2_ctx_t *axis_ctx =
                 axis2_op_ctx_get_base (axis2_msg_ctx_get_op_ctx (msg_ctx, env),



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


Re: build break on windows

Posted by Uthaiyashankar <sh...@wso2.com>.
>>
>> -
>> -    typedef struct axiom_mime_output axiom_mime_output_t;
>> +    typedef void axiom_mime_output_t;


Modified it as
typedef char axiom_mime_output_t;


Is there any other options??

Regards,
Shankar.



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


build break on windows

Posted by Uthaiyashankar <sh...@wso2.com>.
> Date: Wed Mar 19 05:19:12 2008
> New Revision: 638811
>
> URL: http://svn.apache.org/viewvc?rev=638811&view=rev
> Log:
> Axis2/C Hackathon: Improving code
>
> Modified:
>     webservices/axis2/trunk/c/axiom/src/attachments/axiom_mime_output.h
>     webservices/axis2/trunk/c/axiom/src/attachments/data_handler.c
>     webservices/axis2/trunk/c/axiom/src/attachments/mime_body_part.c
>     webservices/axis2/trunk/c/axiom/src/attachments/mime_output.c
>     webservices/axis2/trunk/c/include/axis2_http_transport.h
>     webservices/axis2/trunk/c/src/core/transport/http/common/http_worker.c
>     webservices/axis2/trunk/c/src/core/transport/http/common/simple_http_svr_conn.c
>     webservices/axis2/trunk/c/src/core/transport/http/sender/http_sender.c
>     webservices/axis2/trunk/c/src/core/transport/http/sender/libcurl/axis2_libcurl.c
>
> Modified: webservices/axis2/trunk/c/axiom/src/attachments/axiom_mime_output.h
> URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/axiom_mime_output.h?rev=638811&r1=638810&r2=638811&view=diff
> ==============================================================================
> --- webservices/axis2/trunk/c/axiom/src/attachments/axiom_mime_output.h (original)
> +++ webservices/axis2/trunk/c/axiom/src/attachments/axiom_mime_output.h Wed Mar 19 05:19:12 2008
> @@ -1,4 +1,3 @@
> -
>  /*
>   * Licensed to the Apache Software Foundation (ASF) under one or more
>   * contributor license agreements.  See the NOTICE file distributed with
> @@ -37,10 +36,7 @@
>  {
>  #endif
>  
> -    /* This should be moved to header file later axutil_utils_defines.h*/
> -#define axis2_byte_t char
> -
> -    typedef struct axiom_mime_output axiom_mime_output_t;
> +    typedef void axiom_mime_output_t;
>  
>
>
> Modified: webservices/axis2/trunk/c/axiom/src/attachments/mime_output.c
> URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/attachments/mime_output.c?rev=638811&r1=638810&r2=638811&view=diff
> ==============================================================================
> --- webservices/axis2/trunk/c/axiom/src/attachments/mime_output.c (original)
> +++ webservices/axis2/trunk/c/axiom/src/attachments/mime_output.c Wed Mar 19 05:19:12 2008
> @@ -1,4 +1,3 @@
> -
>  /*
>   * Licensed to the Apache Software Foundation (ASF) under one or more
>   * contributor license agreements.  See the NOTICE file distributed with
> @@ -17,69 +16,65 @@
>   */
>  
>  #include "axiom_mime_output.h"
> -#include "axiom_data_handler.h"
> +#include <axiom_data_handler.h>
>  #include "axiom_mime_body_part.h"
>  #include <axutil_string.h>
>  #include <axiom_text.h>
>  #include <axiom_mime_const.h>
>  
> -struct axiom_mime_output
> -{
> -    int dummy;
> -};
> -
>
>  
>  AXIS2_EXTERN axiom_mime_output_t *AXIS2_CALL
>  axiom_mime_output_create(
> -    const axutil_env_t * env)
> +    const axutil_env_t *env)
>  {
>      axiom_mime_output_t *mime_output = NULL;
>      AXIS2_ENV_CHECK(env, NULL);
>      mime_output = (axiom_mime_output_t *) AXIS2_MALLOC(env->allocator,
> -                                                       sizeof
> -                                                       (axiom_mime_output_t));
> +        sizeof(axiom_mime_output_t));
>  
>      if (!mime_output)
>      {
>          AXIS2_ERROR_SET(env->error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
> +        AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,
> +            "No memory. Cannot create MIME output");
>          return NULL;
>      }
>   

Hi Devs,

Because of this modification, sizeof(axiom_mime_output_t) will return 0. 
Hence, malloc will fail. Also, in windows, this gives a compilation 
error (since warnings are treated as error). Can we revert it or is it 
possible to fix it??

Regards,
Shankar.

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