Ed (cc'ing larceny-users)-
Post by Eduardo CavazosPost by Eduardo CavazosWhat's the proper way to specify a C union using the FFI?
(define make-XYX (make-bytevector the-size-of-XYZ))
This is best current option I can think of.
----
Of course the above is not helpful when the C union is itself a
function parameter (as opposed to a pointer to the union). The
current Larceny FFI does not attempt to address that case directly.
The Larceny FFI is also missing arbitrary struct parameters; adding
the latter does not seem trivial to me, so we have been trying to get
by without it.
-Felix