chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] pass/retrieve arguments by reference in lazy-ffi


From: kevinbanjo
Subject: [Chicken-users] pass/retrieve arguments by reference in lazy-ffi
Date: Thu, 16 Mar 2017 13:32:05 -0700

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

Attachment: test2.scm
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]