-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Monday 02 December 2002 15:37, Philip Martin wrote:
> > adm_baton = wc.svn_wc_adm_open(None, None, dir, True, True, adm_pool)
>
> 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.
I don't know much about Swig either, but I do know that it is capable of
defining and translating arguments (the first argument in this case), as
return values. If an error is returned by the real svn_wc_adm_open, then
Swig will throw a real Python exception. Otherwise, it actually returns the
value of the implicit first argument. The first "None" above should actually
be the second argument passed to the real svn_wc_adm_open, if I understand
Swig correctly.
- --
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE96/PhhDAgUT1yirARAlqyAJ0Z4MtrOuUDanG2LrYvAA1+ZxsVMwCfRP0m
7K+RcsWhopsQCd8ip2lPXFE=
=4jGi
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 3 01:00:11 2002