> > * Goffioul Michael has contributed code that fixes and=20
> > completes ECL's=20
> > FFI including support for C structures and C/C++ variables,=20
> > among other=20
> > things. As some of you might remember, ECL implements its=20
> own port of=20
> > the UFFI specification. I have attached to this message a file with=20
> > examples from the UFFI that now compile and run under ECL.=20
> > Thanks Michael!!!
> You're welcome. Although I'd like to point out that the current
> FFI support is not complete, finished and stable. One of the main
> conceptual problem I'm facing is how to interpret FFI types in
> the form '(* typename). When trying to run actual UFFI examples,
> I turned into problems.
For your information. I fixed most of the problems I described in
my previous post (I worked around the foreign size problem by
manually recasting the foreign data to an appropriate size: for
example if I want to deref-array at position 10, I recast the
array to an array of size 11).
I'm now able to run many of the tests/examples of UFFI. The main
problem remaining is about load-foreign-library: as FFI support is
based on a pre-compilation step, this macro simply changes the
compilation flags, but the side-effect is that the form *must* be
a top-level form. A better workaround should be found.
I cannot provide a patch currently, the CVS on SF is still down.