Forum: Ruby-core [ruby-trunk - Bug #7514][Open] DL::Function and DL::Importer#bind_function ignores abi and name when

Posted by ngoto (Naohisa Goto) (Guest)
on 2012-12-05 03:59
(Received via mailing list)
Issue #7514 has been reported by ngoto (Naohisa Goto).

----------------------------------------
Bug #7514: DL::Function and DL::Importer#bind_function ignores abi and 
name when Fiddle is available
https://bugs.ruby-lang.org/issues/7514

Author: ngoto (Naohisa Goto)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: -


Like Bug #7484, when Fiddle is available, Fiddle's DL wrapper for 
DL::Function ignores :stdcall ABI. In addition, when creating callback 
closure, DL::Function wrapped by Fiddle does not set name, and 
DL::Function#name raises NoMethodError.
Posted by usa (Usaku NAKAMURA) (Guest)
on 2012-12-05 10:17
(Received via mailing list)
Issue #7514 has been updated by usa (Usaku NAKAMURA).

Category set to ext
Status changed from Closed to Assigned
Assignee set to ngoto (Naohisa Goto)
Target version set to 2.0.0

Hmm, when using DL::Function, the patch solves the problem.

But, when we try to shift to Fiddle from DL, since Fiddle::Function
does not still have name.
So we can not shift simply.
I think that better solution of this problem is not deceiving 
DL::Function,
but adding name to Fiddle::Function perfectly.

Goto-san, Aaron, how do you think about this?


In addition, I am actually afflicted by this shift problem now, and this
problem is serious for me.

----------------------------------------
Bug #7514: DL::Function and DL::Importer#bind_function ignores abi and 
name when Fiddle is available
https://bugs.ruby-lang.org/issues/7514#change-34405

Author: ngoto (Naohisa Goto)
Status: Assigned
Priority: Normal
Assignee: ngoto (Naohisa Goto)
Category: ext
Target version: 2.0.0
ruby -v: -


Like Bug #7484, when Fiddle is available, Fiddle's DL wrapper for 
DL::Function ignores :stdcall ABI. In addition, when creating callback 
closure, DL::Function wrapped by Fiddle does not set name, and 
DL::Function#name raises NoMethodError.
Posted by ngoto (Naohisa Goto) (Guest)
on 2012-12-06 18:03
(Received via mailing list)
Issue #7514 has been updated by ngoto (Naohisa Goto).


In the commit r38243, Fiddle::Function#name is added, and 
Fiddle::Importer#import_function and bind_function set the name. The 
name attribute would be used by Fiddle version of Win32::Registry.
----------------------------------------
Bug #7514: DL::Function and DL::Importer#bind_function ignores abi and 
name when Fiddle is available
https://bugs.ruby-lang.org/issues/7514#change-34487

Author: ngoto (Naohisa Goto)
Status: Assigned
Priority: Normal
Assignee: ngoto (Naohisa Goto)
Category: ext
Target version: 2.0.0
ruby -v: -


Like Bug #7484, when Fiddle is available, Fiddle's DL wrapper for 
DL::Function ignores :stdcall ABI. In addition, when creating callback 
closure, DL::Function wrapped by Fiddle does not set name, and 
DL::Function#name raises NoMethodError.
Posted by ngoto (Naohisa Goto) (Guest)
on 2012-12-11 16:13
(Received via mailing list)
Issue #7514 has been updated by ngoto (Naohisa Goto).

Status changed from Assigned to Closed

In r38322, Fiddle::Function#initialize can get name by using :name 
keyword argument. For example,
  Fiddle::Function.new(ptr, [], Fiddle::TYPE_VOID, name: "example")

----------------------------------------
Bug #7514: DL::Function and DL::Importer#bind_function ignores abi and 
name when Fiddle is available
https://bugs.ruby-lang.org/issues/7514#change-34615

Author: ngoto (Naohisa Goto)
Status: Closed
Priority: Normal
Assignee: ngoto (Naohisa Goto)
Category: ext
Target version: 2.0.0
ruby -v: -


Like Bug #7484, when Fiddle is available, Fiddle's DL wrapper for 
DL::Function ignores :stdcall ABI. In addition, when creating callback 
closure, DL::Function wrapped by Fiddle does not set name, and 
DL::Function#name raises NoMethodError.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.