[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: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2002-11-01 16:53:09 CET

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.

---------------------------------------------------------------------
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:06:08 2002

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