[gambit-list] Gerbil: FFI Gerbil modules, why instead of a single Scheme file, a .ssi with (extern ..) + a .scm?

Dimitris Vyzovitis vyzo at hackzen.org
Tue Oct 22 11:45:11 EDT 2019


Convenience... If it's a very big chunk of ffi code I tend to put it in its
own file.

On Tue, Oct 22, 2019 at 6:23 PM Adam <adam.mlmb at gmail.com> wrote:

> Hi Vyzo,
>
> Browsing Gerbil modules for instance here
> https://github.com/vyzo/gerbil/tree/master/src/std/db I see that FFI
> modules tend to have a non-standard format, instead of just being a file
> whateverclibmodule.scm (or .ss in the Gerbil convention, though .scm is
> supported since last week right) which contains normal Scheme and Scheme
> FFI code interspersed e.g. (define-c-lambda funame ...) implies (export
> funame)
>
> , you have a .scm file and a .ssi file, where the .ssi contains (extern
> funame).
>
> Why is this?
>
> Thanks,
> Adam
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20191022/3c1eadfb/attachment.htm>


More information about the Gambit-list mailing list