wrowe 2002/12/31 10:46:29
Modified: include apr_errno.h
Log:
APR_STATUS_IS_FOO() tests must provide at _least_ the canonical test for
APR_FOO amoungst other platform-specific flavors.
Revision Changes Path
1.108 +7 -3 apr/include/apr_errno.h
Index: apr_errno.h
===================================================================
RCS file: /home/cvs/apr/include/apr_errno.h,v
retrieving revision 1.107
retrieving revision 1.108
diff -u -r1.107 -r1.108
--- apr_errno.h 29 Dec 2002 22:50:13 -0000 1.107
+++ apr_errno.h 31 Dec 2002 18:46:29 -0000 1.108
@@ -370,7 +370,8 @@
* For more information call apr_dso_error().
*/
#if defined(WIN32)
-#define APR_STATUS_IS_EDSOOPEN(s) (APR_TO_OS_ERROR(s) ==
ERROR_MOD_NOT_FOUND)
+#define APR_STATUS_IS_EDSOOPEN(s) ((s) == APR_EDSOOPEN \
+ || APR_TO_OS_ERROR(s) == ERROR_MOD_NOT_FOUND)
#else
#define APR_STATUS_IS_EDSOOPEN(s) ((s) == APR_EDSOOPEN)
#endif
@@ -386,9 +387,12 @@
#define APR_STATUS_IS_EBADPATH(s) ((s) == APR_EBADPATH)
/** The given path contained wildcards. */
#define APR_STATUS_IS_EPATHWILD(s) ((s) == APR_EPATHWILD)
-/** Could not find the requested symbol. */
+/** Could not find the requested symbol.
+ * For more information call apr_dso_error().
+ */
#if defined(WIN32)
-#define APR_STATUS_IS_ESYMNOTFOUND(s) (APR_TO_OS_ERROR(s) ==
ERROR_PROC_NOT_FOUND)
+#define APR_STATUS_IS_ESYMNOTFOUND(s) ((s) == APR_ESYMNOTFOUND \
+ || APR_TO_OS_ERROR(s) == ERROR_PROC_NOT_FOUND)
#else
#define APR_STATUS_IS_ESYMNOTFOUND(s) ((s) == APR_ESYMNOTFOUND)
#endif