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 4 gives me the error:
Error: illegal foreign type `ref'
I find this odd as in c-backend.scm:1170 in foreign-type-declaration this
code exists:
((and (= 2 len)
(eq? 'ref (car type)))
(foreign-type-declaration (cadr type) (string-append "&" target)) )
Implying that ref should still be supported.
Any help with this would be greatly appreciated.
Indy
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users