diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-09 10:50:51 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-09 10:50:51 +0000 |
commit | bc11aa72d322c910bf898324f6f64f7b49cc92df (patch) | |
tree | 60a58f4504aef3de43a8aff92f8c55a5c231502a | |
parent | 88b6d5050bfaa9f0677cc8db2ad98dc155d067b1 (diff) |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | complex.c | 2 | ||||
-rw-r--r-- | internal.h | 8 |
3 files changed, 13 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Sat Jul 9 19:48:31 2011 Tadayoshi Funaba <tadf@dotrb.org> + + * internal.h: added declarations. + * complex.c: followed the above change. + Sat Jul 9 17:24:41 2011 Tadayoshi Funaba <tadf@dotrb.org> * NEWS: bigdecimal is not a builtin. @@ -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); |