From d700d340437a4cfba215e51b9045460900c62c3a Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 25 Sep 2013 07:58:49 +0000 Subject: 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 --- numeric.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'numeric.c') 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); +} -- cgit v1.2.3