[Chicken-users] Ref foreign type.

2009-09-21 Thread Nicholas Indy Ray
I've been trying to use the ref FFI type (as documented here: http://chicken.wiki.br/man/4/Foreign%20type%20specifiers#(ref TYPE) ) with no success. Here is an example of my usage: (print ((foreign-lambda* bool (((ref char) mC)) C_return(mC == 'c');) #\c)) compiling this with csc from

[Chicken-users] Chicken release 4.2.0

2009-09-21 Thread Ivan Raikov
Hi all, Chicken 4.2.0 has been released. It can be downloaded from here: http://www.call-with-current-continuation.org/chicken-4.2.0.tar.gz Let me know if there are any problems. -Ivan On Thu, Sep 17, 2009 at 6:08 PM, Ivan Raikov ivan.g.rai...@gmail.com wrote: Hi all,      I have

Re: [Chicken-users] Ref foreign type.

2009-09-21 Thread Jim Ursetto
Looks like there are two issues here. First, try applying the attached patch to fix a bug in c-backend. Second, your usage is incorrect--ref types require an operating system pointer or a locative (since they can be modified)--ref is the analog of c-pointer. For example, you can change your