[plt-scheme] mzscheme subdirectory for SWIG

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Mar 28 19:27:27 EST 2005

On Mar 28, Dmitriy.Zavin at infineon.com wrote:
> I think we should probably convert the SWIG stuff to FFI. I added
> the struct code that is currently in SWIG. If you define a struct
> mapping, then SWIG will create a scheme structure if your func is
> supposed to return a struct. It's fairly limited since it only goes
> one way (C->scheme), but it suited my purposes.

FWIW, the foreign code will keep C structs as C structs, so you have
no overhead for keeping them around.  You inly translate values when
you access the c struct object.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!



Posted on the users mailing list.