diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-16 07:11:30 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-16 07:11:30 +0000 |
commit | 7406260aed6598b4e2769b22c3a1532da85dbe7a (patch) | |
tree | ddb494cb3bbba681c83ae0bed6828273df28cff7 /class.c | |
parent | 0caa77e7bceca57b9d684728fbef63790f927424 (diff) | |
download | ruby-7406260aed6598b4e2769b22c3a1532da85dbe7a.tar.gz |
* eval.c (rb_disable_super, rb_enable_super): deprecate.
* eval.c (thgroup_s_alloc): re-implement group struct.
* eval.c (thgroup_add): add check for enclose and frozen status.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -646,7 +646,7 @@ rb_define_method_id(klass, name, func, argc) VALUE (*func)(); int argc; { - rb_add_method(klass, name, NEW_CFUNC(func,argc), NOEX_PUBLIC|NOEX_CFUNC); + rb_add_method(klass, name, NEW_CFUNC(func,argc), NOEX_PUBLIC); } void @@ -660,9 +660,6 @@ rb_define_method(klass, name, func, argc) int ex = NOEX_PUBLIC; - if (BUILTIN_TYPE(klass) == T_CLASS) { - ex |= NOEX_CFUNC; - } rb_add_method(klass, id, NEW_CFUNC(func, argc), ex); } @@ -673,8 +670,7 @@ rb_define_protected_method(klass, name, func, argc) VALUE (*func)(); int argc; { - rb_add_method(klass, rb_intern(name), NEW_CFUNC(func, argc), - NOEX_PROTECTED|NOEX_CFUNC); + rb_add_method(klass, rb_intern(name), NEW_CFUNC(func, argc), NOEX_PROTECTED); } void @@ -684,8 +680,7 @@ rb_define_private_method(klass, name, func, argc) VALUE (*func)(); int argc; { - rb_add_method(klass, rb_intern(name), NEW_CFUNC(func, argc), - NOEX_PRIVATE|NOEX_CFUNC); + rb_add_method(klass, rb_intern(name), NEW_CFUNC(func, argc), NOEX_PRIVATE); } void |