ruby-changes:3102
From: ko1@a...
Date: 24 Dec 2007 18:07:47 +0900
Subject: [ruby-changes:3102] akr - Ruby:r14594 (trunk): * eval_method.c (Init_eval_method): extracted from Init_eval
akr 2007-12-24 18:07:20 +0900 (Mon, 24 Dec 2007) New Revision: 14594 Modified files: trunk/ChangeLog trunk/eval.c trunk/eval_method.c Log: * eval_method.c (Init_eval_method): extracted from Init_eval for rdoc to find rb_mod_remove_method, rb_mod_undef_method and rb_mod_alias_method. * eval.c (Init_eval): call Init_eval_method. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/eval_method.c?r1=14594&r2=14593 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14594&r2=14593 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/eval.c?r1=14594&r2=14593 Index: ChangeLog =================================================================== --- ChangeLog (revision 14593) +++ ChangeLog (revision 14594) @@ -1,3 +1,11 @@ +Mon Dec 24 18:06:03 2007 Tanaka Akira <akr@f...> + + * eval_method.c (Init_eval_method): extracted from Init_eval + for rdoc to find rb_mod_remove_method, rb_mod_undef_method and + rb_mod_alias_method. + + * eval.c (Init_eval): call Init_eval_method. + Mon Dec 24 17:59:29 2007 Nobuyoshi Nakada <nobu@r...> * load.c (load_lock): reverted. Index: eval.c =================================================================== --- eval.c (revision 14593) +++ eval.c (revision 14594) @@ -2753,9 +2753,7 @@ rb_undef_method(rb_cClass, "module_function"); - rb_define_private_method(rb_cModule, "remove_method", rb_mod_remove_method, -1); - rb_define_private_method(rb_cModule, "undef_method", rb_mod_undef_method, -1); - rb_define_private_method(rb_cModule, "alias_method", rb_mod_alias_method, 2); + Init_eval_method(); rb_define_singleton_method(rb_cModule, "nesting", rb_mod_nesting, 0); rb_define_singleton_method(rb_cModule, "constants", rb_mod_s_constants, -1); Index: eval_method.c =================================================================== --- eval_method.c (revision 14593) +++ eval_method.c (revision 14594) @@ -639,3 +639,11 @@ rb_alias(mod, rb_to_id(newname), rb_to_id(oldname)); return mod; } + +static void +Init_eval_method(void) +{ + rb_define_private_method(rb_cModule, "remove_method", rb_mod_remove_method, -1); + rb_define_private_method(rb_cModule, "undef_method", rb_mod_undef_method, -1); + rb_define_private_method(rb_cModule, "alias_method", rb_mod_alias_method, 2); +} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml