diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-13 16:00:53 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-13 16:00:53 +0000 |
commit | 5cfe7b5250f3e762be7f36106b1b13e48f7bda1a (patch) | |
tree | b9b571a43d86bda67a18a05d95f0a437b5500b3b /ext/dl | |
parent | e03d90e475e8642daf5d9aee4543be4de8a5928d (diff) | |
download | ruby-5cfe7b5250f3e762be7f36106b1b13e48f7bda1a.tar.gz ruby-5cfe7b5250f3e762be7f36106b1b13e48f7bda1a.tar.xz ruby-5cfe7b5250f3e762be7f36106b1b13e48f7bda1a.zip |
* include/ruby/ruby.h: introduce 2 macros:
RFLOAT_VALUE(v), DOUBLE2NUM(dbl).
Rename RFloat#value -> RFloat#double_value.
Do not touch RFloat#double_value directly.
* bignum.c, insns.def, marshal.c, math.c, numeric.c, object.c,
pack.c, parse.y, process.c, random.c, sprintf.c, string.c,
time.c: apply above changes.
* ext/dl/mkcallback.rb, ext/json/ext/generator/generator.c:
ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl')
-rw-r--r-- | ext/dl/mkcallback.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dl/mkcallback.rb b/ext/dl/mkcallback.rb index 8526353bf..21fb177f8 100644 --- a/ext/dl/mkcallback.rb +++ b/ext/dl/mkcallback.rb @@ -70,12 +70,12 @@ DLTYPE = { FLOAT => { :name => 'float', :type => 'float', - :conv => 'RFLOAT(%s)->value', + :conv => 'RFLOAT_VALUE(%s)', }, DOUBLE => { :name => 'double', :type => 'double', - :conv => 'RFLOAT(%s)->value', + :conv => 'RFLOAT_VALUE(%s)', }, VOIDP => { :name => 'ptr', |