diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-06-09 17:47:34 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-06-09 17:47:34 +0000 |
commit | 2d5b7f736518fb343469cd2bee721120309d8dca (patch) | |
tree | 2b087bbd1f6160b6c4b4fb787bc32f96fb889873 /ext/dl/sample/libc.rb | |
parent | d5ceb6ef829a4913e045015ea0deb2269eef9093 (diff) | |
download | ruby-2d5b7f736518fb343469cd2bee721120309d8dca.tar.gz |
* ext/dl: change the callback mechanism.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/sample/libc.rb')
-rw-r--r-- | ext/dl/sample/libc.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dl/sample/libc.rb b/ext/dl/sample/libc.rb index 7d1de2601d..9975828be3 100644 --- a/ext/dl/sample/libc.rb +++ b/ext/dl/sample/libc.rb @@ -38,7 +38,7 @@ module LIBC end -$cb1 = DL.set_callback('IPP', 0){|ptr1, ptr2| +$cb1 = DL.callback('IPP'){|ptr1, ptr2| str1 = ptr1.ptr.to_s str2 = ptr2.ptr.to_s str1 <=> str2 |