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

Re: multi-valued returns in SWIG (was: Rcsparse.py)

From: Marshall White <cscidork_at_yahoo.com>
Date: 2003-03-01 06:14:15 CET

--- Greg Stein <gstein@lyra.org> wrote:
> I got a problem fixed using a solution that is quite fine in my mind.
> However, it doesn't address the larger problem at hand. It *would* be good
> to do that, but I haven't seen a good solution for that (yet).
>
> So no... not closed.
>

Good because I don't intend to give up just yet. :-)

BTW: This one other piece is really important:

Log:
* subversion/bindings/swig/svn_string.i
  Initialize the temp variable to NULL for the SWIG binding
  %typemap(in, numinputs=0) const char **OUTPUT

Index: svn_string.i
===================================================================
--- svn_string.i (revision 5152)
+++ svn_string.i (working copy)
@@ -117,7 +117,7 @@
 */

 /* ### note that SWIG drops the const in the arg decl, so we must cast */
-%typemap(in, numinputs=0) const char **OUTPUT (const char *temp)
+%typemap(in, numinputs=0) const char **OUTPUT (const char *temp = NULL)
     "$1 = (char **)&temp;"

 %typemap(python,argout,fragment="t_output_helper") const char **OUTPUT {

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 1 06:14:56 2003

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.