diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-28 10:26:12 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-28 10:26:12 +0000 |
commit | fbf221938785ada708e9a6c981571f3a2b4a9197 (patch) | |
tree | 980632426e42b16adf3d929d8cf732ed2d960c9c /eval.c | |
parent | dcf3bc392ec73143cb2d8c27703746fda466db89 (diff) |
merge revision(s) 16536:
* eval.c (rb_copy_node_scope), node.h: Rename from copy_node_scope
and export.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2239,8 +2239,8 @@ rb_mod_alias_method(mod, newname, oldname) return mod; } -static NODE* -copy_node_scope(node, rval) +NODE * +rb_copy_node_scope(node, rval) NODE *node; NODE *rval; { @@ -3948,7 +3948,7 @@ rb_eval(self, n) 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), @@ -3984,7 +3984,7 @@ rb_eval(self, n) 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; |