From df62bb4fc987317e209679ef60ea98b31ebae431 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 22 May 2003 07:45:53 +0000 Subject: * eval.c (rb_define_alloc_func): need not to disable rb_call_super() for allocation functions. [ruby-core:1065] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index d2ceac5870..846107d94b 100644 --- a/eval.c +++ b/eval.c @@ -295,8 +295,7 @@ rb_define_alloc_func(klass, func) VALUE (*func) _((VALUE)); { Check_Type(klass, T_CLASS); - rb_add_method(CLASS_OF(klass), ID_ALLOCATOR, NEW_CFUNC(func, 0), - NOEX_PRIVATE|NOEX_CFUNC); + rb_add_method(CLASS_OF(klass), ID_ALLOCATOR, NEW_CFUNC(func, 0), NOEX_PRIVATE); } void @@ -5152,7 +5151,8 @@ rb_call_super(argc, argv) VALUE result; if (ruby_frame->last_class == 0) { - rb_name_error(ruby_frame->last_func, "superclass method `%s' must be enabled by rb_enable_super()", + rb_name_error(ruby_frame->last_func, + "superclass method `%s' must be enabled by rb_enable_super()", rb_id2name(ruby_frame->last_func)); } -- cgit v1.2.3