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

Re: Problem with python swig example - geturl.py

From: Jon Middleton <jjm_at_ixtab.org.uk>
Date: 2002-12-03 01:04:18 CET

On Mon, Dec 02, 2002 at 11:37:41PM +0000, Philip Martin wrote:
> Jon Middleton <jjm@ixtab.org.uk> 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
bindings ?

"First things first -- but not necessarily in that order"
                -- The Doctor, "Doctor Who"		

  • application/pgp-signature attachment: stored
Received on Tue Dec 3 01:04:59 2002

This is an archived mail posted to the Subversion Dev mailing list.