mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_eval.c (Init_vm_eval): define module_eval, class_eval and eval
here for rdoc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2a608fed88
commit
4efc3f78b0
3 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Sep 26 03:03:32 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* vm_eval.c (Init_vm_eval): define module_eval, class_eval and eval
|
||||
here for rdoc.
|
||||
|
||||
Fri Sep 26 00:40:30 2008 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* range.c (range_inspect): fix SEGV for cyclic range object.
|
||||
|
|
3
eval.c
3
eval.c
|
@ -1132,7 +1132,6 @@ Init_eval(void)
|
|||
rb_define_virtual_variable("$@", errat_getter, errat_setter);
|
||||
rb_define_virtual_variable("$!", errinfo_getter, 0);
|
||||
|
||||
rb_define_global_function("eval", rb_f_eval, -1);
|
||||
rb_define_global_function("iterator?", rb_f_block_given_p, 0);
|
||||
rb_define_global_function("block_given?", rb_f_block_given_p, 0);
|
||||
|
||||
|
@ -1148,8 +1147,6 @@ Init_eval(void)
|
|||
rb_define_private_method(rb_cModule, "append_features", rb_mod_append_features, 1);
|
||||
rb_define_private_method(rb_cModule, "extend_object", rb_mod_extend_object, 1);
|
||||
rb_define_private_method(rb_cModule, "include", rb_mod_include, -1);
|
||||
rb_define_method(rb_cModule, "module_eval", rb_mod_module_eval, -1);
|
||||
rb_define_method(rb_cModule, "class_eval", rb_mod_module_eval, -1);
|
||||
|
||||
rb_undef_method(rb_cClass, "module_function");
|
||||
|
||||
|
|
|
@ -1319,6 +1319,7 @@ rb_make_backtrace(void)
|
|||
void
|
||||
Init_vm_eval(void)
|
||||
{
|
||||
rb_define_global_function("eval", rb_f_eval, -1);
|
||||
rb_define_global_function("catch", rb_f_catch, -1);
|
||||
rb_define_global_function("throw", rb_f_throw, -1);
|
||||
|
||||
|
@ -1334,6 +1335,8 @@ Init_vm_eval(void)
|
|||
|
||||
rb_define_method(rb_cModule, "module_exec", rb_mod_module_exec, -1);
|
||||
rb_define_method(rb_cModule, "class_exec", rb_mod_module_exec, -1);
|
||||
rb_define_method(rb_cModule, "module_eval", rb_mod_module_eval, -1);
|
||||
rb_define_method(rb_cModule, "class_eval", rb_mod_module_eval, -1);
|
||||
|
||||
rb_define_global_function("caller", rb_f_caller, -1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue