Subject: Re: [ruby-ffi] FFI::Library::LIBC and other constants? |
From: Stephen Bannasch |
Date: 1/11/10 11:18 AM |
To: ruby-ffi@googlegroups.com |
*BUT*, it is not available on the latest ruby-ffi 0.5.4 (on Windows, at least). Furthermore, the constants in FFI::Library are just different: 1. JRuby-dev: FFI::Library.constants => ["LIBC", "CURRENT_PROCESS"] 2. ruby-ffi with MRI 1.8.7: FFI::Library.constants => ["DEFAULT"] It would be great to have the constants aligned. At the minimum, it would be really nice to have FFI::Library::LIBC present.Hi, In this list there were a couple of times when the following constant has been mentioned: FFI::Library::LIBC Which is a pretty handy thing, since it guarantees to proper value for C lib on every platform.
I get the same results on a Mac using v0.5.4 After installing v 0.6.0 from source I get:
FFI::Library.constants
=> ["CURRENT_PROCESS", "LIBC"] Needed to update RakeFile to specify dependency on bones < 3.0.0 The setup method has been removed from Bones 3.x and at least the documentation has stopped mentioning the use of PROC.<method> in the RakeFile. see: http://github.com/stepheneb/ffi/commit/b4c6e89f6a60bcd150077d59c93397d9cf77a1e5