Subject:
[ruby-ffi] FFI::Library::LIBC and other constants?
From:
Vladimir Sizikov
Date:
1/11/10 10:20 AM
To:
ruby-ffi@googlegroups.com

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.

*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.

Am I missing something?

Thanks,
  --Vladimir