summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorGravatar shankar2010-04-01 14:07:15 +0000
committerGravatar shankar2010-04-01 14:07:15 +0000
commitafe578cd8894b9a6cd6c6b65e552448536f02dce (patch)
treeab587d961c643011c11412d6174455b9f4b70537 /util
parent43a95ab28944f2178de3f70f97578bad0b14df62 (diff)
downloadaxis2c-afe578cd8894b9a6cd6c6b65e552448536f02dce.tar.gz
axis2c-afe578cd8894b9a6cd6c6b65e552448536f02dce.tar.bz2
Refactor, adding comments, improving performance
git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@929982 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'util')
-rw-r--r--util/include/axutil_utils.h4
-rw-r--r--util/src/qname.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/util/include/axutil_utils.h b/util/include/axutil_utils.h
index 8c156d1..1cef523 100644
--- a/util/include/axutil_utils.h
+++ b/util/include/axutil_utils.h
@@ -24,6 +24,7 @@
#include <axutil_env.h>
#include <axutil_date_time.h>
#include <axutil_base64_binary.h>
+#include <assert.h>
#ifdef __cplusplus
extern "C"
@@ -43,6 +44,9 @@ extern "C"
#define AXUTIL_LOG_FILE_SIZE 1024 * 1024 * 32
#define AXUTIL_LOG_FILE_NAME_SIZE 512
+
+#define AXIS2_ASSERT assert
+
/** This macro is called to check whether structure on which function is called
* is NULL and to check whether the environment structure passed is valid.
* @param object structure on which function is called
diff --git a/util/src/qname.c b/util/src/qname.c
index e4197c3..49b2069 100644
--- a/util/src/qname.c
+++ b/util/src/qname.c
@@ -119,7 +119,6 @@ axutil_qname_free(
axutil_qname_t *qname,
const axutil_env_t *env)
{
- AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
qname->ref--;