Currently, the Python bindings fail the following test case:
rev = svn.core.svn_opt_revision_t()
rev.value.number = 10
The following patch fixes the problem.
[[[
Upgrade Python bindings to automatically create proxy objects for unions.
Change svn_opt.h to use explicitly declared unions instead of anonymous
unions, so that our SWIG bindings can wrap these unions correctly.
* subversion/include/svn_opt.h
(svn_opt_revision_value): New.
(svn_opt_revision_t): Use svn_opt_revision_value instead of anonymous struct.
* build/generator/swig/header_wrappers.py
(Generator._re_structs, Generator._re_callbacks): Adjust regexp to accept
unions, and types without the _t suffix.
* subversion/python/tests/pool.py
(PoolTestCase.test_integer_struct_members): Test svn_opt_revision_value.
]]]
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 Tue Oct 11 01:35:56 2005