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

Request for review: swig callback invokers

From: Chia-liang Kao <clkao_at_clkao.org>
Date: 2003-08-05 18:43:33 CEST

Hi,

I'm about to commit my changes of swig interface definition
(*.i files). most of them should not affect other languages
using swig (python, java). the only major change is about
driving the callbacks, which is the other direction of the
current `thunk' functions used in wrappers. I'd like to
know if maintainers of other language bindings thinks it's
okay to add them.

let's take http://svn.elixus.org/member/clkao/svn-perl/swig/svn_ra.i
as example. the interface adds the member functions of
svn_ra_plugin_t as functions that take ra as the first
argument. the macro RA_INVOKER and RA_INVOKER_FUNC define
the actual code to be compiled. other languages should
be immediately able to use them.

but this is really a bit nasty, at least some code should
be written to extract the member functions of struct and
generate the relevent code to let .i files include it.
or does someone know if there's a way to let swig generate
wrappers for C member functions?

Cheers,
CLK

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 5 18:44:09 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.