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

Re: svn commit: rev 3598 - trunk/subversion/libsvn_fs

From: Glenn A. Thompson <gthompson_at_cdr.net>
Date: 2002-11-01 17:21:48 CET

Hey:

Greg Hudson wrote:

>On Fri, 2002-11-01 at 00:37, Karl Fogel wrote:
>
>
>>That is, why can't users -- caller and callee -- of trail->scratchpool
>>treat it just the way they would treat a separate pool argument?
>>
>>
>
>You're saying that functions would behave like this?
>
> pool = trail->scratchpool;
> my_own_temp_allocation = apr_palloc(pool, size);
>
> trail->scratchpool = svn_pool_create(pool);
> make_call(..., trail)
> apr_pool_destroy(trail->scratchpool)
> trail->scratchpool = pool
>
>It would work, but it's not very elegant.
>
>

Not elegant but I prefer this so far.
However I'm writing up something. Back with it in a little bit.

gat

>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Nov 1 17:21:38 2002

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.