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

Re: svn commit: r14643 - in trunk/subversion: include libsvn_client libsvn_ra_dav libsvn_repos libsvn_wc

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2005-05-09 14:56:00 CEST

"Peter N. Lundblad" <peter@famlundblad.se> writes:

> On Mon, 9 May 2005 kfogel@tigris.org wrote:
>> Author: kfogel
>> Date: Mon May 9 01:07:30 2005
>> New Revision: 14643

>> + * Use @a pool for temporary allocation. For compatibility, if @a pool
>> + * is @c NULL, then use a new subpool of the global pool for temporary
>> + * allocation, and destroy the subpool before returning.
>> + *
> why not handle this case in the wrapper isntead (by creating a pool and
> destroying it after the call)? Do we need the NULL pool handling in the
> new API?

Yes, it would be much better to do it in the wrapper. All the

    err = ...
    if (err)
      goto departure;

changes could be reverted, which is a good thing as that style is very
prone to bugs caused by inadvertent use of SVN_ERR.

Philip Martin
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon May 9 15:06:46 2005

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.