[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: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-11-01 17:27:12 CET

Greg Hudson <ghudson@MIT.EDU> writes:
> > 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.

Yeah, the more I think about it, the less I like it, you're right.

---------------------------------------------------------------------
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:59:11 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.