diff --git a/ChangeLog b/ChangeLog index 450dc7e477..1809ba9c2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Mon Jun 23 13:10:15 2014 URABE Shyouhei + + * include/ruby/ruby.h (struct RFloat): no longer. [Feature #9863] + + * include/ruby/ruby.h (RFLOAT): ditto. + + * internal.h (struct RFloat): moved here. + + * internal.h (RFLOAT): ditto. + Mon Jun 23 12:01:42 2014 NARUSE, Yui * lib/uri/generic.rb (check_port): allow strings for port= as diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index ff97d36b3d..284684e0d9 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -807,11 +807,6 @@ struct RClass { #define RMODULE_IS_REFINEMENT FL_USER3 #define RMODULE_INCLUDED_INTO_REFINEMENT FL_USER4 -struct RFloat { - struct RBasic basic; - double float_value; -}; - double rb_float_value(VALUE); VALUE rb_float_new(double); VALUE rb_float_new_in_heap(double); @@ -1077,7 +1072,6 @@ struct RStruct { #define ROBJECT(obj) (R_CAST(RObject)(obj)) #define RCLASS(obj) (R_CAST(RClass)(obj)) #define RMODULE(obj) RCLASS(obj) -#define RFLOAT(obj) (R_CAST(RFloat)(obj)) #define RSTRING(obj) (R_CAST(RString)(obj)) #define RREGEXP(obj) (R_CAST(RRegexp)(obj)) #define RARRAY(obj) (R_CAST(RArray)(obj)) diff --git a/internal.h b/internal.h index 04aa693741..db4961dea4 100644 --- a/internal.h +++ b/internal.h @@ -420,6 +420,13 @@ struct RSymbol { #define RSYMBOL(obj) (R_CAST(RSymbol)(obj)) +struct RFloat { + struct RBasic basic; + double float_value; +}; + +#define RFLOAT(obj) (R_CAST(RFloat)(obj)) + /* class.c */ void rb_class_subclass_add(VALUE super, VALUE klass); void rb_class_remove_from_super_subclasses(VALUE);