[cffi-devel] cffi-uffi-compat vs :float

Ken Tilton kentilton at gmail.com
Sat May 20 04:00:30 UTC 2006


On 5/19/06, Luís Oliveira <luismbo at gmail.com> wrote:
>
> On 2006-maj-19, at 23:43, Ken Tilton wrote:
> > The allocate ended up with CFFI being passed ':float, which really
> > made CFFI unhappy.
>
> Strange, it works for me.
>
> UFFI> (allocate-foreign-object :float 16)
> #<A Mac Pointer #x302E30>
>
> Also, ':float shouldn't be a problem:
>
> CFFI> (foreign-alloc ':float)
> #<A Mac Pointer #x3019F0>
>
>
> > But a similar hack on deref-array did not fly [...]
>
> If I understand the UFFI docs correctly, I think your code is not
> correct UFFI, since deref-array expects an array type,...


OK, that is probably it. We have been thrashing around with old UFFI code
half transitioned half not etc etc. Probably flipped some stuff over to
CFFI then tried ... well, you get the idea.

thx, kt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20060520/20c4bbe4/attachment.html>


More information about the cffi-devel mailing list