summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--complex.c1
-rw-r--r--rational.c1
3 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ebaf06afaf..f3d5e49d66 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 24 17:44:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * complex.c (Init_Complex), rational.c (Init_Rational): undefines
+ default #allocate methods which call the allocater.
+
Wed Sep 24 17:02:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* complex.c (Init_Complex), rational.c (Init_Rational): ID_ALLOCATOR
diff --git a/complex.c b/complex.c
index dba87d4984..31dc0baade 100644
--- a/complex.c
+++ b/complex.c
@@ -1371,6 +1371,7 @@ Init_Complex(void)
rb_cComplex = rb_define_class(COMPLEX_NAME, rb_cNumeric);
rb_define_alloc_func(rb_cComplex, nucomp_s_alloc);
+ rb_undef_method(CLASS_OF(rb_cComplex), "allocate");
#if 0
rb_define_private_method(CLASS_OF(rb_cComplex), "new!", nucomp_s_new_bang, -1);
diff --git a/rational.c b/rational.c
index ad235498ba..f5eb2c3aea 100644
--- a/rational.c
+++ b/rational.c
@@ -1488,6 +1488,7 @@ Init_Rational(void)
rb_cRational = rb_define_class(RATIONAL_NAME, rb_cNumeric);
rb_define_alloc_func(rb_cRational, nurat_s_alloc);
+ rb_undef_method(CLASS_OF(rb_cRational), "allocate");
#if 0
rb_define_private_method(CLASS_OF(rb_cRational), "new!", nurat_s_new_bang, -1);