[Xapian-devel] A question about project " Lua bindings for Xapian"
Olly Betts
olly at survex.com
Sat Mar 19 10:38:54 GMT 2011
On Sat, Mar 19, 2011 at 02:33:13PM +0800, xiaona han wrote:
> I am interested in the project "Supporting another language(Lua)". It
> difficulty is medium-hard. Then my question is: How many lines of code does
> it need to implement this project? I found some code in other languages
> binding is generated by SWIG. Then what part of code do we need to write,
> and what part of code are generated by SWIG?
If you look at the code in the version control system (either svn, or
the git mirror) it should be clearer as none of the generated files
are checked in (whereas the tar files we distribute include the
generated files for convenience).
If you look at one of the languages where the wrapping has been done
in a natural way, you should see the sort of thing to aim for. Python
is probably the best example of this (but ignore the *3.py files which
are mostly generated from the *2.py files by the Python 2to3 tool, with
some manual tweaks to work around issues with that tool).
Cheers,
Olly
More information about the Xapian-devel
mailing list