tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: language bindings (fs-independent quotas)
On Thu, Nov 17, 2011 at 03:51:52PM +0100, Manuel Bouyer wrote:
> On Thu, Nov 17, 2011 at 01:02:33PM +0000, David Holland wrote:
> > Writing language bindings for a simple and straightforward library is
> > a simple and straightforward undertaking.
>
> OK, so prove it by writing a perl binding format :)
> I've never written a language binding, so it's not going to be
> straightforward for me anyway.
It's probably not as hard as you think:
http://www.swig.org/tutorial.html
See especially the "SWIG for the truly lazy" section, where you basically
just need to point it at a header file.
Of course, this will result in a rather raw binding, and often times it can
be useful to customize things to make them more natural for a particular
language.
eric
Home |
Main Index |
Thread Index |
Old Index