* object.c (rb_mod_initialize): since module_eval no longer passes

self, use module_exec instead.  fixed: [ruby-dev:29637]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2006-10-07 02:53:24 +00:00
parent dd529e9804
commit 4632511aa9
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sat Oct 7 11:53:04 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
* object.c (rb_mod_initialize): since module_eval no longer passes
self, use module_exec instead. fixed: [ruby-dev:29637]
Sat Oct 7 00:27:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
* class.c (rb_include_module): remove unnecessary check.

View File

@ -1205,7 +1205,7 @@ static VALUE
rb_mod_initialize(VALUE module)
{
if (rb_block_given_p()) {
rb_mod_module_eval(0, 0, module);
rb_mod_module_exec(1, &module, module);
}
return Qnil;
}