[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 3186 - trunk/subversion/bindings/swig

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-09-23 21:46:43 CEST

On Wed, Sep 18, 2002 at 11:49:14AM -0500, cmpilato@tigris.org wrote:
> Author: cmpilato
> Date: 2002-09-18 11:49:07 -0500 (Wed, 18 Sep 2002)
> New Revision: 3186
>
> Modified:
> trunk/subversion/bindings/swig/swigutil_py.c
> trunk/subversion/bindings/swig/swigutil_py.h
> Log:
> * subversion/bindings/swig/swigutil_py.h
> Oops. #include "svn_repos.h", too.
>
> * subversion/bindings/swig/swigutil_py.c
> (svn_swig_py_strings_to_array): Dup the string into the array's
> pool. Also, set the array's 'nelts' member to the right things,
> since our APR_ARRAY_IDX macro won't do that.

Why the dup? Presumably, these Python strings are an *input* parameter. As
such, they are guaranteed to stick around for the life of the function
invocation. Thus, there shouldn't be a need to copy them...

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Sep 23 21:46:35 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.