the generator module for Chicken Scheme seems to have a small bug.
On our Debian etch system, it is necessary to add
#include <assert.h> by hand to the c++ file generated by SWIG. The
problem can be easily solved by adding the include line to
The generator module for Allegro Lisp seems to be quite broken,
especially for c++.
First of all, it is not possible to specify absolute path names for
the input file because the path for the common lisp output file is
generated wrong, based on the input file path.
Further, when generating bindings from a c++ library, the resulting
c++ binding file cannot be compiled due to a missing condition for
methods with no return value. In the try-block, a return expression
is still created.
The lispification-function in allegrocl.swg also behaves strange. It
inserts a '-' whenever a change from lowercase to uppercase is detected
in a symbol name, but also when a change from uppercase to
lowercase is detected. This is wrong and leads to e.g. the
following symbol names: The method 'open' of class Bottle is
transformed to bottle_open without lispification and with
lispification to b-ottle-open.
Apart from these issues, the generated lisp file cannot be compiled
in some cases, when some type synonyms cannot be resolved, which
leads to empty lines in the lisp code. Further, template classes are
causing problems because of the class renaming done in these cases.
This can be fixed by changing the lisp-function full-name to take
into account type synonyms.
Attached you find a patch to fix all of these issues. It would be
great if it could be integrated as early as possible to the current
SVN version of SWIG.