FFI needs a way to specify call convention
------------------------------------------

                 Key: JRUBY-2873
                 URL: http://jira.codehaus.org/browse/JRUBY-2873
             Project: JRuby
          Issue Type: Bug
          Components: Extensions
            Reporter: Charles Oliver Nutter
            Assignee: Wayne Meissner
             Fix For: JRuby 1.1.4


Currently there is no way to specify call convention when binding functions 
from a given library with FFI. After some discussion on #rubinius, the 
following changes were generally agreed upon:

# attach_foreign has never been used and may go away soon
# it should be possible to specify a default call convention for an entire FFI 
module, probably with set_ffi_convention :stdcall or something similar
# it was not decided whether there should be a way to specify per-function call 
convention, and I suggested that perhaps FFI should only allow one call 
convention per module

There was also some discussion of whether set_ffi_lib and set_ffi_convention 
could omit the set_ but that's also still under discussion.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to