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

Re: [Swig-dev] [PATCH] Python bindings bug showing with SWIG 1.3.24

From: Max Bowsher <maxb_at_ukf.net>
Date: 2005-03-19 04:28:57 CET

Torsten Landschoff wrote:
> From this information I created the following quick hack to fix or at
> least work around the problem. It would surely be more elegant to get
> the type once. OTOH the interaction with the svn server will most
> probably be much slower than the swig type lookups.
>
> Index:
> subversion-1.1.3/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
> =================================================================== ---
> subversion-1.1.3.orig/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
> 2005-03-18 01:17:55.747298032 +0100 +++
> subversion-1.1.3/subversion/bindings/swig/python/libsvn_swig_py/swigutil_py.c
> 2005-03-18 01:24:17.883204544 +0100 @@ -1273,7 +1273,7 @@ { PyObject
> *receiver = baton; PyObject *result;
> - swig_type_info *tinfo = SWIG_TypeQuery("svn_log_changed_path_t *");
> + swig_type_info *tinfo;
> PyObject *chpaths;
> svn_error_t *err = SVN_NO_ERROR;
>
> @@ -1281,6 +1281,7 @@
> return SVN_NO_ERROR;
>
> svn_swig_py_acquire_py_lock();
> + tinfo = SWIG_TypeQuery("svn_log_changed_path_t *");
>
> if (changed_paths)
> {

I've committed this (but also moved the tinfo declaration down as well), and
nominated it for 1.1.4.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Mar 19 04:30:18 2005

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.