[Ecls-list] :[u]int32-t

Matthew Mondor mm_lists at pulsar-zone.net
Wed Feb 3 00:44:29 UTC 2010


On Tue, 2 Feb 2010 15:51:19 -0500
Matthew Mondor <mm_lists at pulsar-zone.net> wrote:

> On Tue, 2 Feb 2010 15:26:46 -0500
> Matthew Mondor <mm_lists at pulsar-zone.net> wrote:
> 
> > Despite having fixed that locally, I'm having problems when trying
> > to get-slot-value with various types.  I have the impression that it
> > could have to do with the implementation of foreign-elt-type-p which
> > uses MEMBER on a more restrictive list rather than using the
> > *ffi-types* hash-table or a more complete list.
> 
> I had the time to extract and start looking at the portable UFFI
> package, and indeed it supports less types than ECL's UFFI does as
> well.  However, considering how tighly integrated with C ECL is, and
> that C99 does define [u]int8_t, [u]int16_t, [u]int32_t and [u]int64_t,
> we probably should support all of those as well, IMO.  We have byte,
> but should probably also have uint8-t and int8-t too.

After dinner I did a few tests and came up with this diff (attached)
which seems to work properly for me now.  So despite some of those
types not being available to traditional UFFI (this is ECL FFI/UFFI
specific), it solves the problems I had.

Thanks,
-- 
Matt
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ecl-ffi-diff.txt
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100202/fcbeebc7/attachment.txt>


More information about the ecl-devel mailing list