diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-16 17:47:19 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-16 17:47:19 +0000 |
commit | 8ef5da3be1577bb5ae7f55b60cf9fedb10ecb85e (patch) | |
tree | a700e3fe92165180b04451746f9c4fda4f038289 /ext/dl | |
parent | 3ec0bc3828794a6ef6293b53b403af8bc2362934 (diff) |
consistent parentheses in assignment RHS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r-- | ext/dl/lib/dl/import.rb | 4 | ||||
-rw-r--r-- | ext/dl/sample/libc.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb index b71cae30ab..c0dfb5f705 100644 --- a/ext/dl/lib/dl/import.rb +++ b/ext/dl/lib/dl/import.rb @@ -79,7 +79,7 @@ module DL symty = rty + ty module_eval("module_function :#{func}") - sym = module_eval [ + sym = module_eval([ "DL::callback(\"#{symty}\"){|*args|", " sym,rdec,enc,dec = @SYM['#{func}']", " args = enc.call(args) if enc", @@ -90,7 +90,7 @@ module DL " @args = rs", " @retval", "}", - ].join("\n") + ].join("\n")) @SYM[func] = [sym,rdec,enc,dec] diff --git a/ext/dl/sample/libc.rb b/ext/dl/sample/libc.rb index 32816fd331..a1f6fbe543 100644 --- a/ext/dl/sample/libc.rb +++ b/ext/dl/sample/libc.rb @@ -39,7 +39,7 @@ module LIBC def my_compare(ptr1, ptr2) ptr1.ptr.to_s <=> ptr2.ptr.to_s end - COMPARE = callback "int my_compare(char**, char**)" + COMPARE = callback("int my_compare(char**, char**)") end |