summaryrefslogtreecommitdiff
path: root/include/apr_errno.h
diff options
context:
space:
mode:
authorjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2004-07-31 22:36:03 +0000
committerjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2004-07-31 22:36:03 +0000
commit2875d385587c4e9fd7752d849f4ae4ba78716e65 (patch)
tree45cb3c540f116bcbe9ab9ec53f5b20d0fbf11722 /include/apr_errno.h
parent2c4244f0f67edc1959e5355f9abf7071625cb237 (diff)
downloadlibapr-2875d385587c4e9fd7752d849f4ae4ba78716e65.tar.gz
Eliminate APR_STATUS_IS_SUCCESS macro.
Reviewed by (conceptually): Ryan, Greg, Fitz git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65292 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_errno.h')
-rw-r--r--include/apr_errno.h12
1 files changed, 1 insertions, 11 deletions
diff --git a/include/apr_errno.h b/include/apr_errno.h
index cd2a2b4c9..dced627f8 100644
--- a/include/apr_errno.h
+++ b/include/apr_errno.h
@@ -154,7 +154,7 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf,
*/
#define APR_OS_START_SYSERR (APR_OS_START_EAIERR + APR_OS_ERRSPACE_SIZE)
-/** no error. @see APR_STATUS_IS_SUCCESS */
+/** no error. */
#define APR_SUCCESS 0
/**
@@ -787,9 +787,6 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf,
*/
#define APR_OS2_STATUS(e) (APR_FROM_OS_ERROR(e))
-#define APR_STATUS_IS_SUCCESS(s) ((s) == APR_SUCCESS \
- || (s) == APR_OS_START_SYSERR + NO_ERROR)
-
/* These can't sit in a private header, so in spite of the extra size,
* they need to be made available here.
*/
@@ -948,9 +945,6 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf,
#define apr_get_netos_error() (APR_FROM_OS_ERROR(WSAGetLastError()))
#define apr_set_netos_error(e) (WSASetLastError(APR_TO_OS_ERROR(e)))
-#define APR_STATUS_IS_SUCCESS(s) ((s) == APR_SUCCESS \
- || (s) == APR_OS_START_SYSERR + ERROR_SUCCESS)
-
/* APR CANONICAL ERROR TESTS */
#define APR_STATUS_IS_EACCES(s) ((s) == APR_EACCES \
|| (s) == APR_OS_START_SYSERR + ERROR_ACCESS_DENIED \
@@ -1063,8 +1057,6 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf,
#define apr_get_netos_error() (APR_FROM_OS_ERROR(WSAGetLastError()))
#define apr_set_netos_error(e) (WSASetLastError(APR_TO_OS_ERROR(e)))
-#define APR_STATUS_IS_SUCCESS(s) ((s) == APR_SUCCESS)
-
/* APR CANONICAL ERROR TESTS */
#define APR_STATUS_IS_EACCES(s) ((s) == APR_EACCES)
#define APR_STATUS_IS_EEXIST(s) ((s) == APR_EEXIST)
@@ -1132,8 +1124,6 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf,
* @addtogroup APR_STATUS_IS
* @{
*/
-/** no error */
-#define APR_STATUS_IS_SUCCESS(s) ((s) == APR_SUCCESS)
/** permission denied */
#define APR_STATUS_IS_EACCES(s) ((s) == APR_EACCES)