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 /include | |
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 'include')
-rw-r--r-- | include/ruby/ruby.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index e37aa7e5f..6ba9ffb87 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -451,8 +451,10 @@ struct RClass { struct RFloat { struct RBasic basic; - double value; + double double_value; }; +#define RFLOAT_VALUE(v) (RFLOAT(v)->double_value) +#define DOUBLE2NUM(dbl) rb_float_new(dbl) #define ELTS_SHARED FL_USER2 |