From bc11aa72d322c910bf898324f6f64f7b49cc92df Mon Sep 17 00:00:00 2001 From: tadf Date: Sat, 9 Jul 2011 10:50:51 +0000 Subject: [PATCH] * internal.h: added declarations. * complex.c: followed the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ complex.c | 2 -- internal.h | 8 ++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 552166b41c..ac02dd25af 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Jul 9 19:48:31 2011 Tadayoshi Funaba + + * internal.h: added declarations. + * complex.c: followed the above change. + Sat Jul 9 17:24:41 2011 Tadayoshi Funaba * NEWS: bigdecimal is not a builtin. diff --git a/complex.c b/complex.c index 7189e8bdf8..78f0902a83 100644 --- a/complex.c +++ b/complex.c @@ -486,7 +486,6 @@ nucomp_f_complex(int argc, VALUE *argv, VALUE klass) } #define imp1(n) \ -extern VALUE rb_math_##n(VALUE x);\ inline static VALUE \ m_##n##_bang(VALUE x)\ {\ @@ -494,7 +493,6 @@ m_##n##_bang(VALUE x)\ } #define imp2(n) \ -extern VALUE rb_math_##n(VALUE x, VALUE y);\ inline static VALUE \ m_##n##_bang(VALUE x, VALUE y)\ {\ diff --git a/internal.h b/internal.h index 71c8ab6ca6..c495a7576f 100644 --- a/internal.h +++ b/internal.h @@ -110,7 +110,15 @@ VALUE rb_iseq_clone(VALUE iseqval, VALUE newcbase); VALUE rb_get_load_path(void); /* math.c */ +VALUE rb_math_atan2(VALUE, VALUE); +VALUE rb_math_cos(VALUE); +VALUE rb_math_cosh(VALUE); +VALUE rb_math_exp(VALUE); +VALUE rb_math_hypot(VALUE, VALUE); VALUE rb_math_log(int argc, VALUE *argv); +VALUE rb_math_sin(VALUE); +VALUE rb_math_sinh(VALUE); +VALUE rb_math_sqrt(VALUE); /* newline.c */ void Init_newline(void);