summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--complex.c2
-rw-r--r--internal.h8
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 <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.
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);