mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@13913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c4af7f51b7
commit
25c0cb981a
17 changed files with 213 additions and 197 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue