Re: Multiple problems with svn python bindings
From: Jon Trowbridge <trow_at_ximian.com>
Date: 2002-08-31 22:43:33 CEST
On Sat, 2002-08-31 at 14:53, Greg Stein wrote:
OK, you asked for it. :) I'm attaching a patch that implements the hack
> > Hardcoding it seems like the simplest approach. It is only three
I'm not sure if would be more fragile. We could just create
svn_error_t *svn_client_diff_foo (PyObject *diff_options_py_object,
diff_options = svn_swig_py_strings_to_array (diff_options_py_object,
return svn_client_diff (diff_options, ...blah blah blah..., pool)
Then in svn_client.i we would %include svn_client_workarounds.h and add
%rename(svn_client_diff) svn_client_diff_foo
In other words, we just pass the PyObject through to the workaround _foo
I haven't tried this, but it seems like it should work, and it doesn't
(Of course, we'd add comments explaining what was going on, pick a
All of that said, Dan Berlin's proposal for modifying swig is obviously
-JT
---------------------------------------------------------------------
|
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.