ruby/ext/dl
usa 74bca55da9 merge revision(s) 38202,38238,38324,38326: [Backport #7527]
* test/dl/test_func.rb (test_name_with_block, test_bind, test_qsort1):
  call unbind to release the callback closure because maximum number
  of callbacks is limited to DL::MAX_CALLBACK (== 5) with pure DL
  without Fiddle.

* ext/dl/lib/dl/func.rb (DL::Function#unbind, #bound?): suppress
  NoMethodError when Fiddle is available. [ruby-core:50756] [Bug #7543]
* test/dl/test_func.rb (test_bound*, test_unbind*): tests for the above.

* ext/dl/lib/dl/func.rb (DL::Function#initialize, DL::Function#bind):
  ABI should be set by using CFunc#calltype even when Fiddle is used.
  When Fiddle is used and a block is given, name shoud not be ignored.
  [ruby-core:50562] [Bug #7514]

* ext/dl/lib/dl/import.rb (DL::Importer#bind_function): should respect
  abi and name when Fiddle is used.

* test/dl/test_func.rb (test_name_with_block): test for "name" method
  with giving a block.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@38506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-20 09:52:46 +00:00
..
callback * ext/dl/callback/mkcallback.rb (gencallback): shouldn't assume that 2010-11-25 01:31:21 +00:00
lib merge revision(s) 38202,38238,38324,38326: [Backport #7527] 2012-12-20 09:52:46 +00:00
win32 * ext/dl/win32/registry.rb: Corrected RegCreateKeyExA signature. 2010-12-25 19:33:46 +00:00
cfunc.c merge revision(s) 35485: [Backport #7013] 2012-09-21 10:53:50 +00:00
cptr.c merge revision(s) 32712,32718,32719: [Backport #6014] 2012-02-14 20:09:27 +00:00
depend * ext/dl: revert dl with libffi because it can't run on mswin now. 2010-02-25 22:49:20 +00:00
dl.c * backport r32981 and r32982 from trunk. 2011-08-16 00:51:58 +00:00
dl.h merge revision(s) 32712,32718,32719: [Backport #6014] 2012-02-14 20:09:27 +00:00
extconf.rb * ext/dl: revert dl with libffi because it can't run on mswin now. 2010-02-25 22:49:20 +00:00
handle.c * backport r32981 and r32982 from trunk. 2011-08-16 00:51:58 +00:00