[plt-scheme] ffi equivalent of array in struct

From: Eli Barzilay (eli at barzilay.org)
Date: Mon Apr 24 23:10:13 EDT 2006

On Apr 23, Jon Rafkind wrote:
> 
> Do I have to list them all? (make-cstruct-type _int _int _int ...) ?
> The real problem is a struct with 65536 chars in it. I dont want to
> have to type all those..

Like I said, if you know that it's 64K bytes, then just use malloc
with the number.  It would be nice to just create new types manually,
given a size and an alignment, but libffi doesn't allow that, and
creating such huge type descriptors is going to be a problem.

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


Posted on the users mailing list.