Need to know wordsize for ffi pointer interface
Bug #299241 reported by
dsmith
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ikarus Scheme |
Fix Committed
|
Wishlist
|
Abdulaziz Ghuloum |
Bug Description
Code that uses pointer-ref-c-* functions needs to know the value of wordsize so it can advance over a pointer.
The file lib/ypsilon-
(define pointer-size
(cond
[(<= (fixnum-width) 32) 4]
[else 8]))
I guess this could be used. It would be nice to have it (or something like it) available in the (ikarus foreign) library.
Related branches
Changed in ikarus: | |
milestone: | none → 0.0.4 |
To post a comment you must log in.
btw: I wanted to make this a wishlist item. Didn't see how to do that.
-Dale