aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-25 07:58:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-09-25 07:58:49 +0000
commitd700d340437a4cfba215e51b9045460900c62c3a (patch)
tree6eab445cde1fc6e53ff86ba9718180baaeb609e3 /numeric.c
parentb328a43fa6e9d07ee8cfce09aaf5fdf1da7203fd (diff)
downloadruby-d700d340437a4cfba215e51b9045460900c62c3a.tar.gz
internal.h: move inline functions
* internal.h (rb_float_value, rb_float_new): move inline functions from ruby/ruby.h. * numeric.c (rb_float_value, rb_float_new): define external functions for extension libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/numeric.c b/numeric.c
index aefaa72174..6979b21b65 100644
--- a/numeric.c
+++ b/numeric.c
@@ -4063,3 +4063,17 @@ Init_Numeric(void)
sym_to = ID2SYM(rb_intern("to"));
sym_by = ID2SYM(rb_intern("by"));
}
+
+#undef rb_float_value
+double
+rb_float_value(VALUE v)
+{
+ return rb_float_value_inline(v);
+}
+
+#undef rb_float_new
+VALUE
+rb_float_new(double d)
+{
+ return rb_float_new_inline(d);
+}