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

Re: svn commit: rev 7290 - trunk/subversion/bindings/swig

From: Russell Yanofsky <rey4_at_columbia.edu>
Date: 2003-10-04 21:16:50 CEST

C. Michael Pilato wrote:
> cmpilato@tigris.org writes:
>> * subversion/bindings/swig/svn_repos.i
>> Add typemap for svn_repos_history_func_t/baton (### I did Python
>> only -- other bindings language maintainers will need to follow
>> suit).
> Actually, if someone out there can take a look at this -- I don't see
> anything wrong, but for some reason my typemap doesn't seem to be
> "taking". The generated svn_repos.c file doesn't have the typemap
> applied. I'm probably missing something really obvious. Any
> thoughts?

It looks like it could be due to a swig bug in handling function pointer
arguments. The following change makes the typemap start working work for me:

Index: subversion/include/svn_repos.h
--- subversion/include/svn_repos.h (revision 7294)
+++ subversion/include/svn_repos.h (working copy)
@@ -432,10 +432,10 @@
  * convenience of the implementor, who should not expect it to live
  * longer than a single callback call.
-typedef svn_error_t *svn_repos_history_func_t (void *baton,
- const char *path,
- svn_revnum_t revision,
- apr_pool_t *pool);
+typedef svn_error_t *(*svn_repos_history_func_t) (void *baton,
+ const char *path,
+ svn_revnum_t revision,
+ apr_pool_t *pool);

- Russ

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 4 21:16:54 2003

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.