summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-22 07:45:53 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-22 07:45:53 +0000
commitaf1f2e57f527dde8c979d46751b9487b6c696d36 (patch)
tree929fcd0b6058f51ea156b67fe920fcff71658e9d
parent97382004344131d65a73380305cda5ced315c810 (diff)
downloadruby-af1f2e57f527dde8c979d46751b9487b6c696d36.tar.gz
ruby-af1f2e57f527dde8c979d46751b9487b6c696d36.tar.xz
ruby-af1f2e57f527dde8c979d46751b9487b6c696d36.zip
* eval.c (rb_define_alloc_func): need not to disable
rb_call_super() for allocation functions. [ruby-core:1065] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--eval.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 811491106..aa40faa00 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu May 22 15:46:37 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_define_alloc_func): need not to disable
+ rb_call_super() for allocation functions. [ruby-core:1065]
+
Thu May 22 06:21:33 2003 why the lucky stiff <ruby-cvs@whytheluckystiff.net>
* ext/syck/rubyext.c (rb_syck_err_handler): raise ArgumentError on
diff --git a/eval.c b/eval.c
index d2ceac587..846107d94 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));
}