Franz has added support for ACL to SWIG, which supports the automatic generation of FFI code for ACL from C headers. This is potentially very handy.
There are some limitations: No C++ support, no support for unions, nested structures, bitfields within structures, global variables or enumerated types, functions with string arguments need to be handled manually and some defconstants generated from #defines will be wrong.
Ouch, using C headers is such a deficient way of specifying an API. Unfortunately it's usually all you've got.
Posted by jjwiseman at April 30, 2004 08:43 AM