[Ecls-list] FFI paradigms (was Re: ECL 10.2.1 RC)

Alexander Gavrilov angavrilov at gmail.com
Tue Feb 16 08:06:31 UTC 2010


> With the following patch from Alexander Gavrilov he posted on this list
> earlier, the behaviour of get-slot-value/get-slot-pointer seems less
> erroneous indeed :)
> 
> I no longer saw values too large to belong to the expected types,
> although interestingly I did get 0 values from a few slots where I
> expected there would be values.

You also have to implement proper case handlers in a few switch
statements that dispatch on the enum values for everything to
work properly. Since I don't need the new types, I didn't do that.
(I was more concerned with memory corruption happening because
 :pointer-void was being passed as if it was :object)

Alexander




More information about the ecl-devel mailing list