[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] ffi questions and bug (?)
From: |
felix winkelmann |
Subject: |
Re: [Chicken-users] ffi questions and bug (?) |
Date: |
Fri, 20 May 2005 07:48:41 +0200 |
On 5/19/05, Carlos Pita <address@hidden> wrote:
>
> Just to get the feeling, can you give me a
> simple example of (manually) wrapping a
> trivial C++ class using the ffi and tinyclos
> (I mean "manually" without recurring to
> easy ffi or swig)? That is just to understand
> how each piece fits.
Ok, no problem. An example will follow.
> Then and unrelated, I think the following is a bug
> (in chicken 1.89):
>
>[...]
Absolutely. Oh boy, what a stupid bug...
--- chicken-old/chicken-ffi-macros.scm 2005-03-07 08:49:48.000000000 +0100
+++ chicken-new/chicken-ffi-macros.scm 2005-05-20 07:39:50.000000000 +0200
@@ -188,7 +188,7 @@
,(string-intersperse
(append
(cons
- "struct foo { "
+ (string-append "struct " (->string name) " { ")
(map (lambda (slot)
(case (length slot)
[(3)
Thanks, Carlos.
cheers,
felix