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

[PATCH] Fix svn_opt_revision_t.value in Python bindings

From: David James <james82_at_gmail.com>
Date: 2005-10-11 01:34:55 CEST

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

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.