summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-23 04:12:19 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-23 04:12:19 +0000
commit6adcf6a898cd8d6becfebd0ee1a881e9bc77c3be (patch)
treea171afbbca7dea986204d414e2680e159098e43a
parente02eb253e7a31f4767eecd8d55a62e5a5608b74a (diff)
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog10
-rw-r--r--include/ruby/ruby.h6
-rw-r--r--internal.h7
3 files changed, 17 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 450dc7e..1809ba9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Mon Jun 23 13:10:15 2014 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * 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 <naruse@ruby-lang.org>
* lib/uri/generic.rb (check_port): allow strings for port= as
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index ff97d36..284684e 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 04aa693..db4961d 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);