public
Description: Rubinius, the Ruby VM
Homepage: http://rubini.us
Clone URL: git://github.com/evanphx/rubinius.git
Search Repo:
Iconv uses FFI::USE_THIS_PROCESS_AS_LIBRARY instead of nil.
rue (author)
Fri Jun 06 18:59:32 -0700 2008
commit  325b23628887f3d5fcca112e8b5183f7a57357d5
tree    72c2c88d14d82a6a3fdf0964f394eb58f5faed34
parent  812cba1358a528925fc1c678653d610c2ce29209
...
1
2
 
3
4
5
6
 
7
8
9
...
1
2
3
4
5
 
 
6
7
8
9
0
@@ -1,9 +1,9 @@
0
 # Simple $5 Iconv implementation using FFI
0
 
0
+
0
 class Iconv
0
 
0
- # Makes all following +attach_function+ calls look in this library
0
- set_ffi_lib [nil, "libiconv"]
0
+ set_ffi_lib FFI::USE_THIS_PROCESS_AS_LIBRARY, "libiconv"
0
 
0
   attach_function "iconv_open", :create, [:string, :string], :pointer
0
   attach_function "iconv_close", :close, [:pointer], :int

Comments

    No one has commented yet.