[Xapian-devel] Bindings and overloading

James Aylett james-xapian at tartarus.org
Thu May 27 17:46:38 BST 2004


On Wed, May 26, 2004 at 06:59:21PM +0100, Olly Betts wrote:

> > > How about a single xapian.i, but use "#ifdef SWIGPYTHON" so it sees
> > > different parts?  There's something similar with SWIGGUILE already.
> > 
> > I suppose so. There aren't a huge number of conflicts ... #ifdef
> > SWIG_OVERLOADING might be better, and the target languages can define
> > that in util.i if they want.
> 
> Sure, if that works.

Pretty sure it will, yes. If not, they can do so on the swig
invocation line in foo/Makefile.am .
 
> I'm not sure it would be wise to use SWIG_OVERLOADING as the name though
> - that seems to be treading on someone else's namespace...

Good point. XAPIAN_OVERLOADING then?

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org




More information about the Xapian-devel mailing list