I think that James Long was working on some automatic ffi generating code. Maybe you can take a look at his code and see what he is doing and extract things relevant to you. Or just use what he has.
On Tue, Nov 10, 2009 at 7:43 PM, Alex Queiroz <asandroq@gmail.com> wrote:I have a few header files that have quite a few of these declarations.
>
> You must create a variable in Scheme-land too:
>
> (define *ABC* ((c-lambda () int "___result = ABC;")))
I was wondering whether there was any easy way out, instead of going
through the header files and writing a c-lambda for each one.
-aditya
_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list