On Mon, Dec 02, 2002 at 11:37:41PM +0000, Philip Martin wrote:
> Jon Middleton <firstname.lastname@example.org> writes:
> > I'm having some problems with updating geturl.py to the lastest swig
> > bindings. When the following line is run the script segv's
> > adm_baton = wc.svn_wc_adm_open(None, None, dir, True, True, adm_pool)
> > Can anyone shed any light on what I'm doing wrong ? I've also attached
> > the script.
> I know nothing about swig. The C function svn_wc_adm_open returns an
> error (an svn_error_t*) not an access baton (an svn_wc_adm_access_t*).
> The access baton is returned through the first argument, which is of
> type svn_wc_adm_access_t**. If passing "None" above is equivalent to
> passing NULL in C then that will cause a segv.
So I should be doing
wc.svn_wc_adm_open(adm_baton, None, dir, True, True, adm_pool)
Where adm_baton is of type _p_p_svn_wc_adm_access_t, is there
something special that needs be be done to initialise adm_baton to
this type or should an typemap for this function be added to the swig
"First things first -- but not necessarily in that order"
-- The Doctor, "Doctor Who"
Received on Tue Dec 3 01:04:59 2002
- application/pgp-signature attachment: stored