Discussion:
[Larceny-users] typedefs and the ffi
Eduardo Cavazos
2009-02-25 20:01:03 UTC
Permalink
Hello,

Is this:

(ffi-add-alias-of-attribute-entry! 'xyz 'ulong)

the proper way to model this:

typedef unsigned long xyz ;

Just wanted to verify since the manual isn't clear on this.

Ed
Felix Klock
2009-02-25 23:54:22 UTC
Permalink
Ed-
Post by Eduardo Cavazos
(ffi-add-alias-of-attribute-entry! 'xyz 'ulong)
typedef unsigned long xyz ;
Yes, I added that function precisely because I wanted to directly
model typedef's in code that used the FFI.

(I had to look at the relevant changeset and log entry to verify this:
https://trac.ccs.neu.edu/trac/larceny/changeset/5598 )
Post by Eduardo Cavazos
Just wanted to verify since the manual isn't clear on this.
I don't think the FFI section of the manual is going to get revised by
the time 0.97 is released, but perhaps it will by 0.98 or 0.99. Sorry
about that.

-Felix
Eduardo Cavazos
2009-02-27 23:27:23 UTC
Permalink
Post by Eduardo Cavazos
(ffi-add-alias-of-attribute-entry! 'xyz 'ulong)
typedef unsigned long xyz ;
Yes, I added that function precisely because I wanted to directly model
typedef's in code that used the FFI.
Thanks Felix!

Ed

Loading...