Hi everyone: So far I love lazy-ffi but I can't for the life of me figure out how to create a value in scheme, pass a pointer to it (or convert it) that can be seen and its contents altered by a C library, then retrieve its results upon return to scheme.
I have 145 functions I have to wrap, approximately 60 of which do pass by reference. My preference would be that it be something as simple as possible so I, a noob at define-syntax, actually have a chance to be able to write a macro to wrap these. Also, I'd far prefer to be able to do this all from within CSI. Attached is my current program. I've tried just about everything I can think of. What it currently does in CSI is to exit without even so much as an error code (echo $? = 0). It does the same thing when compiled. Any help would be appreciated! -Kevin
test2.scm
Description: Binary data
_______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
