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

SWIG 1.3.21 and SWIG_TypeQuery

From: David James <james82_at_gmail.com>
Date: 2005-08-03 15:32:23 CEST

In the Subversion project, we use SWIG_TypeQuery to access type
information on Python/SWIG objects from within a utility library in
Subversion. In SWIG 1.3.20 and SWIG 1.3.21, the SWIG_TypeQuery
function is not able to find all of Subversion's datatypes. (For some
datatypes, such as Subversion's svn_fs_root_t * struct, it returns
NULL.)

The SWIG wrapper for the svn_fs_root_t * datatype is initialized in a
SWIG interface file called fs.i. This interface file depends on a
library called swigutil_py.c, which builds many objects, including
svn_fs_root_t * objects, and feeds it to Subversion. To build these
wrapper objects, swigutil_py.c needs SWIG type information on
svn_fs_root_t * objects.

In SWIG 1.3.19 and SWIG 1.3.24+, we can obtain SWIG type information
on svn_fs_root_t * objects by calling SWIG_TypeQuery("svn_fs_root_t
*") from within "swigutil_py.c". However, in SWIG 1.3.20 and SWIG
1.3.21, SWIG_TypeQuery("svn_fs_root_t *") returns NULL.

The Subversion project would like to continue supporting SWIG 1.3.20
and SWIG 1.3.21, if it is possible to do so without major changes to
our build process. Do you have any advice on how we could work around
this issue?

Cheers,

David

-- 
David James -- http://www.cs.toronto.edu/~james
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 3 15:33:30 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.