Need to know wordsize for ffi pointer interface

Bug #299241 reported by dsmith
2
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-compat.ikarus.ss has

  (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

Revision history for this message
dsmith (dalepsmith) wrote :

btw: I wanted to make this a wishlist item. Didn't see how to do that.

-Dale

Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Will do.

Changed in ikarus:
assignee: nobody → aghuloum
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Abdulaziz Ghuloum (aghuloum) wrote :

Added in revision 1690. I added it as a procedure however to make it consistent with, say, fixnum-width.

Changed in ikarus:
status: Confirmed → Fix Committed
Changed in ikarus:
milestone: none → 0.0.4
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.