summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-03 16:01:16 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-03 16:01:16 +0000
commit228f30be3a96d078179eb1e1773a226c50c4e1a2 (patch)
tree5425f2861bd8fed40999a2c21659821f500fc826 /complex.c
parent5d6602c44e95862d28e05591798d790d0ad80dfb (diff)
* bignum.c (Init_Bignum): rdiv method removed. [ruby-dev:34242]
* complex.c (nucomp_quo): ditto. * numeric.c (num_rdiv): ditto. * rational.c (nurat_div): ditto. * complex.c (nucomp_fdiv): fdiv implementation restored. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/complex.c b/complex.c
index 477132b1a2..fdf4719551 100644
--- a/complex.c
+++ b/complex.c
@@ -791,7 +791,7 @@ nucomp_div(VALUE self, VALUE other)
}
static VALUE
-nucomp_rdiv(VALUE self, VALUE other)
+nucomp_quo(VALUE self, VALUE other)
{
get_dat1(self);
@@ -800,7 +800,6 @@ nucomp_rdiv(VALUE self, VALUE other)
f_to_r(dat->image)), other);
}
-#if 0
static VALUE
nucomp_fdiv(VALUE self, VALUE other)
{
@@ -810,7 +809,6 @@ nucomp_fdiv(VALUE self, VALUE other)
f_to_f(dat->real),
f_to_f(dat->image)), other);
}
-#endif
static VALUE
nucomp_expt(VALUE self, VALUE other)
@@ -1550,9 +1548,8 @@ Init_Complex(void)
rb_define_method(rb_cComplex, "-", nucomp_sub, 1);
rb_define_method(rb_cComplex, "*", nucomp_mul, 1);
rb_define_method(rb_cComplex, "/", nucomp_div, 1);
- rb_define_method(rb_cComplex, "quo", nucomp_rdiv, 1);
- rb_define_method(rb_cComplex, "rdiv", nucomp_rdiv, 1);
- rb_define_method(rb_cComplex, "fdiv", nucomp_rdiv, 1);
+ rb_define_method(rb_cComplex, "quo", nucomp_quo, 1);
+ rb_define_method(rb_cComplex, "fdiv", nucomp_fdiv, 1);
rb_define_method(rb_cComplex, "**", nucomp_expt, 1);
rb_define_method(rb_cComplex, "==", nucomp_equal_p, 1);