2 Aug 10:29
[ swig-Patches-2019314 ] Allegro List fixes & small Chicken Scheme fix
From: SourceForge.net <noreply <at> sourceforge.net>
Subject: [ swig-Patches-2019314 ] Allegro List fixes & small Chicken Scheme fix
Newsgroups: gmane.comp.programming.swig.devel
Date: 2008-08-02 08:30:41 GMT
Subject: [ swig-Patches-2019314 ] Allegro List fixes & small Chicken Scheme fix
Newsgroups: gmane.comp.programming.swig.devel
Date: 2008-08-02 08:30:41 GMT
Patches item #2019314, was opened at 2008-07-16 03:53 Message generated for change (Comment added) made by wuzzeb You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=301645&aid=2019314&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Accepted Priority: 5 Private: No Submitted By: Lorenz Msenlechner (moesenle) Assigned to: Nobody/Anonymous (nobody) Summary: Allegro List fixes & small Chicken Scheme fix Initial Comment: 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 chicken.swg. 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 generator module. 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 was made against SVN revision 10659. Best regards, Lorenz ---------------------------------------------------------------------- >Comment By: John Lenz (wuzzeb) Date: 2008-08-02 03:30 Message: Logged In: YES user_id=153408 Originator: NO Ok, I committed this patch in 10726. I am not really familiar with allegro cl and had no way to test it, but looking at the changes they look ok. Also, I notice now that the chicken test suite spits out a whole bunch of warnings... the output of make check-chicken-test-suite used to be so clean :( Will have to clean up the warnings. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=301645&aid=2019314&group_id=1645 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
RSS Feed