ruby-changes:5043
From: knu <ko1@a...>
Date: Fri, 23 May 2008 00:51:02 +0900 (JST)
Subject: [ruby-changes:5043] knu - Ruby:r16536 (ruby_1_8): * eval.c (rb_copy_node_scope), node.h: Rename from copy_node_scope
knu 2008-05-23 00:49:42 +0900 (Fri, 23 May 2008) New Revision: 16536 Modified files: branches/ruby_1_8/ChangeLog branches/ruby_1_8/eval.c branches/ruby_1_8/node.h Log: * eval.c (rb_copy_node_scope), node.h: Rename from copy_node_scope and export. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=16536&r2=16535&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/node.h?r1=16536&r2=16535&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/eval.c?r1=16536&r2=16535&diff_format=u Index: ruby_1_8/ChangeLog =================================================================== --- ruby_1_8/ChangeLog (revision 16535) +++ ruby_1_8/ChangeLog (revision 16536) @@ -1,3 +1,8 @@ +Fri May 23 00:48:10 2008 Akinori MUSHA <knu@i...> + + * eval.c (rb_copy_node_scope), node.h: Rename from copy_node_scope + and export. + Thu May 22 21:24:15 2008 Yukihiro Matsumoto <matz@r...> * parse.y (top_local_setup): fixed memory leak bug based on a Index: ruby_1_8/eval.c =================================================================== --- ruby_1_8/eval.c (revision 16535) +++ ruby_1_8/eval.c (revision 16536) @@ -2242,8 +2242,8 @@ return mod; } -static NODE* -copy_node_scope(node, rval) +NODE * +rb_copy_node_scope(node, rval) NODE *node; NODE *rval; { @@ -3955,7 +3955,7 @@ noex |= NOEX_NOSUPER; } - defn = copy_node_scope(node->nd_defn, ruby_cref); + defn = rb_copy_node_scope(node->nd_defn, ruby_cref); rb_add_method(ruby_class, node->nd_mid, defn, noex); if (scope_vmode == SCOPE_MODFUNC) { rb_add_method(rb_singleton_class(ruby_class), @@ -3992,7 +3992,7 @@ rb_warning("redefine %s", rb_id2name(node->nd_mid)); } } - defn = copy_node_scope(node->nd_defn, ruby_cref); + defn = rb_copy_node_scope(node->nd_defn, ruby_cref); rb_add_method(klass, node->nd_mid, defn, NOEX_PUBLIC|(body?body->nd_noex&NOEX_UNDEF:0)); result = Qnil; Index: ruby_1_8/node.h =================================================================== --- ruby_1_8/node.h (revision 16535) +++ ruby_1_8/node.h (revision 16536) @@ -371,6 +371,7 @@ #define RUBY_EVENT_ALL 0xff typedef void (*rb_event_hook_func_t) _((rb_event_t,NODE*,VALUE,ID,VALUE)); +NODE *rb_copy_node_scope _((NODE *, NODE *)); void rb_add_event_hook _((rb_event_hook_func_t,rb_event_t)); int rb_remove_event_hook _((rb_event_hook_func_t)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/