[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Use the new APR pools code

From: Sander Striker <striker_at_apache.org>
Date: 2001-12-14 17:15:02 CET

Hi,

Since the new pools code is in APR it seemed logical to
provide a patch to use its API.

Sander

Log:
* subversion/libsvn_subr/svn_error.c

  (svn_error__make_error_pool): use apr_pool_create_ex rather than
                                apr_pool_sub_make.

  (svn_pool_create): same here

Index: ./subversion/libsvn_subr/svn_error.c
===================================================================
--- ./subversion/libsvn_subr/.svn/text-base/svn_error.c.svn-base Fri Dec 14 14:43:16 2001
+++ ./subversion/libsvn_subr/svn_error.c Fri Dec 14 16:55:33 2001
@@ -101,7 +101,8 @@

   /* Create a subpool to hold all error allocations. We use a subpool rather
      than the parent itself, so that we can clear the error pool. */
- apr_pool_sub_make (error_pool, parent, abort_on_pool_failure);
+ apr_pool_create_ex (error_pool, parent, abort_on_pool_failure,
+ APR_POOL_FDEFAULT);

   /* Set the error pool on itself. */
   apr_err = apr_pool_userdata_set (*error_pool, SVN_ERROR_POOL,
@@ -318,7 +319,8 @@
 {
   apr_pool_t *ret_pool;

- apr_pool_sub_make (&ret_pool, parent_pool, abort_on_pool_failure);
+ apr_pool_create_ex (&ret_pool, parent_pool, abort_on_pool_failure,
+ APR_POOL_FDEFAULT);

   /* If there is no parent, then initialize ret_pool as the "top". */
   if (parent_pool == NULL)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:53 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.