Index: subversion/libsvn_subr/svn_error.c =================================================================== --- subversion/libsvn_subr/svn_error.c +++ subversion/libsvn_subr/svn_error.c Mon Feb 4 02:10:23 2002 @@ -367,24 +367,13 @@ #define SVN_POOL_FUNC_DEFINE(rettype, name) \ rettype name(apr_pool_t *pool) -#define SVN_POOL_WRAPPER_DEFINE(rettype, name) \ - rettype name##_debug(apr_pool_t *pool, const char *file_line) \ - { \ - return name(pool); \ - } - #else /* APR_POOL_DEBUG */ #undef svn_pool_create #undef svn_pool_clear #define SVN_POOL_FUNC_DEFINE(rettype, name) \ rettype name##_debug(apr_pool_t *pool, const char *file_line) - -#define SVN_POOL_WRAPPER_DEFINE(rettype, name) \ - rettype name(apr_pool_t *pool) \ - { \ - return name##_debug(pool, "svn:"); \ - } + #endif /* APR_POOL_DEBUG */ @@ -465,8 +454,29 @@ } -SVN_POOL_WRAPPER_DEFINE(apr_pool_t *, svn_pool_create) -SVN_POOL_WRAPPER_DEFINE(void, svn_pool_clear) +/* Wrappers that ensure binary compatibility */ +#if !APR_POOL_DEBUG +apr_status_t svn_pool_create_debug (apr_pool_t *pool, const char *file_line) +{ + return svn_pool_create (pool); +} + +void svn_pool_clear_debug (apr_pool_t *pool, const char *file_line) +{ + svn_pool_clear (pool); +} + +#else /* APR_POOL_DEBUG */ +apr_status_t svn_pool_create (apr_pool_t *pool) +{ + return svn_pool_create_debug (pool, "svn:"); +} + +void svn_pool_clear (apr_pool_t *pool) +{ + svn_pool_clear_debug (pool, "svn:"); +} +#endif /* APR_POOL_DEBUG */