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.<br><br><br><br><div class="gmail_quote">
On Tue, Nov 10, 2009 at 9:49 AM, Aditya Godbole <span dir="ltr"><<a href="mailto:aag.lists@gmail.com">aag.lists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Tue, Nov 10, 2009 at 7:43 PM, Alex Queiroz <<a href="mailto:asandroq@gmail.com">asandroq@gmail.com</a>> wrote:<br>
><br>
>     You must create a variable in Scheme-land too:<br>
><br>
> (define *ABC* ((c-lambda () int "___result = ABC;")))<br>
<br>
</div>I have a few header files that have quite a few of these declarations.<br>
I was wondering whether there was any easy way out, instead of going<br>
through the header files and writing a c-lambda for each one.<br>
<font color="#888888"><br>
-aditya<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
</div></div></blockquote></div><br>