mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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@16536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
398689b176
commit
be5d23c22a
3 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri May 23 00:48:10 2008 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* 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@ruby-lang.org>
|
||||
|
||||
* parse.y (top_local_setup): fixed memory leak bug based on a
|
||||
|
|
8
eval.c
8
eval.c
|
@ -2242,8 +2242,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;
|
||||
{
|
||||
|
@ -3955,7 +3955,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),
|
||||
|
@ -3992,7 +3992,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;
|
||||
|
|
1
node.h
1
node.h
|
@ -371,6 +371,7 @@ typedef unsigned int rb_event_t;
|
|||
#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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue