axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From din...@apache.org
Subject svn commit: r598919 - /webservices/axis2/trunk/c/util/include/axutil_utils.h
Date Wed, 28 Nov 2007 09:04:48 GMT
Author: dinesh
Date: Wed Nov 28 01:04:47 2007
New Revision: 598919

URL: http://svn.apache.org/viewvc?rev=598919&view=rev
Log:
fixed: axis2_http_server not starting

Modified:
    webservices/axis2/trunk/c/util/include/axutil_utils.h

Modified: webservices/axis2/trunk/c/util/include/axutil_utils.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/include/axutil_utils.h?rev=598919&r1=598918&r2=598919&view=diff
==============================================================================
--- webservices/axis2/trunk/c/util/include/axutil_utils.h (original)
+++ webservices/axis2/trunk/c/util/include/axutil_utils.h Wed Nov 28 01:04:47 2007
@@ -53,14 +53,19 @@
      * @return If function return a status code return AXIS2_SUCCESS. Else if
      *         function return a type pointer return NULL
      */
-#define AXIS2_FUNC_PARAM_CHECK(object, env, error_return) \
-    if (!object) \
-    { \
+#define AXIS2_FUNC_PARAM_CHECK(object, env, error_return)               \
+    if (!object)                                                        \
+    {                                                                   \
         AXIS2_ERROR_SET_ERROR_NUMBER(env->error, AXIS2_ERROR_INVALID_NULL_PARAM); \
-        AXIS2_ERROR_SET_STATUS_CODE(env->error, AXIS2_FAILURE); \
-        return error_return; \
+        AXIS2_ERROR_SET_STATUS_CODE(env->error, AXIS2_FAILURE);         \
+        return error_return;                                            \
+    }                                                                   \
+    else                                                                \
+    {                                                                   \
+        AXIS2_ERROR_SET_STATUS_CODE(env->error, AXIS2_SUCCESS);              \
     }
 
+
     /**This macro is called to check whether an object is NULL.
      * if object is NULL error number and status code is set
      * @param object object to be check for NULL
@@ -70,24 +75,30 @@
      * @return If function return a status code return AXIS2_SUCCESS. Else if
      *         function return a type pointer return NULL
      */
-#define AXIS2_PARAM_CHECK(error, object, error_return) \
-    if (!object) \
-    { \
+#define AXIS2_PARAM_CHECK(error, object, error_return)                  \
+    if (!object)                                                        \
+    {                                                                   \
         AXIS2_ERROR_SET_ERROR_NUMBER(error, AXIS2_ERROR_INVALID_NULL_PARAM); \
-        AXIS2_ERROR_SET_STATUS_CODE(error, AXIS2_FAILURE); \
-        return error_return; \
+        AXIS2_ERROR_SET_STATUS_CODE(error, AXIS2_FAILURE);              \
+        return error_return;                                            \
+    }                                                                   \
+    else                                                                \
+    {                                                                   \
+        AXIS2_ERROR_SET_STATUS_CODE(error, AXIS2_SUCCESS);              \
     }
 
 
-#define AXIS2_PARAM_CHECK_VOID(error, object) \
-    if (!object) \
-    { \
+
+#define AXIS2_PARAM_CHECK_VOID(error, object)                           \
+    if (!object)                                                        \
+    {                                                                   \
         AXIS2_ERROR_SET_ERROR_NUMBER(error, AXIS2_ERROR_INVALID_NULL_PARAM); \
-        AXIS2_ERROR_SET_STATUS_CODE(error, AXIS2_FAILURE); \
-        return; \
+        AXIS2_ERROR_SET_STATUS_CODE(error, AXIS2_FAILURE);              \
+        return;                                                         \
     }
 
 
+
     /**This macro is used to handle error situation.
      * @param error_number Error number for the error occured
      * @param error_return If function return a status it should pass here
@@ -96,10 +107,10 @@
      * @return If function return a status code return AXIS2_SUCCESS. Else if
      *         function return a type pointer return NULL
      */
-#define AXIS2_ERROR_SET(error, error_number, status_code) \
-    { \
-        AXIS2_ERROR_SET_ERROR_NUMBER(error, error_number); \
-        AXIS2_ERROR_SET_STATUS_CODE(error, status_code); \
+#define AXIS2_ERROR_SET(error, error_number, status_code)   \
+    {                                                       \
+        AXIS2_ERROR_SET_ERROR_NUMBER(error, error_number);  \
+        AXIS2_ERROR_SET_STATUS_CODE(error, status_code);    \
     }
 
     /** Method names in the loadable libraries */
@@ -128,10 +139,10 @@
             void *ctx);
 
     /**
-        * \brief Axis2 scopes
-        *
-        * Possible scope value for Axis2
-        */
+     * \brief Axis2 scopes
+     *
+     * Possible scope value for Axis2
+     */
     enum axis2_scopes
     {
 



---------------------------------------------------------------------
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