Subject:
Re: [ruby-ffi] Re: Struct/ManagedStruct and GC behaviour
From:
Wayne Meissner
Date:
12/22/09 1:56 PM
To:
ruby-ffi@googlegroups.com

2009/12/23 Jon <jon.forums@gmail.com>:
>> http://kenai.com/projects/jruby/sources/main/content/lib/ruby/1.8/Win32API.rb?rev=498a8743a12ed64e3fa6f994318caf62dfa73aa5
>
> Very nice.  Ah, another thing to add to the old to-look-at list ;)
>
> Should line 2 match for mingw in addition to mswin?

If you want it to be portable, then yes.  On JRuby, windows is always
mswin.  That implementation uses a couple of JRuby internals - like
FFI::Type::WIN32PTR (to allow int values as :pointer arguments), and
loading ffi-internal.so instead of the more generic 'ffi' (shaves
about 50ms off startup).