From ff3d6d201d72eaa0f21dc376d59f4ba2a3acad92 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 28 May 2002 03:20:04 +0000 Subject: * eval.c (scope_node): trick to keep the node has a scope. * eval.c (rb_eval): NODE_EVSTR: write back local_tbl to the node. * eval.c (rb_eval): NODE_SCOPE: hold the scope node in ruby_scope. * eval.c (module_setup): ditto. * eval.c (rb_call0): ditto. * node.h (NEW_DASGN, NEW_DASGN_CURR): remove surplus semicolons. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- node.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'node.h') diff --git a/node.h b/node.h index 33b0703ebc..ecf61450c1 100644 --- a/node.h +++ b/node.h @@ -267,8 +267,8 @@ typedef struct RNode { #define NEW_MASGN(l,r) rb_node_newnode(NODE_MASGN,l,0,r) #define NEW_GASGN(v,val) rb_node_newnode(NODE_GASGN,v,val,rb_global_entry(v)) #define NEW_LASGN(v,val) rb_node_newnode(NODE_LASGN,v,val,local_cnt(v)) -#define NEW_DASGN(v,val) rb_node_newnode(NODE_DASGN,v,val,0); -#define NEW_DASGN_CURR(v,val) rb_node_newnode(NODE_DASGN_CURR,v,val,0); +#define NEW_DASGN(v,val) rb_node_newnode(NODE_DASGN,v,val,0) +#define NEW_DASGN_CURR(v,val) rb_node_newnode(NODE_DASGN_CURR,v,val,0) #define NEW_IASGN(v,val) rb_node_newnode(NODE_IASGN,v,val,0) #define NEW_CDECL(v,val) rb_node_newnode(NODE_CDECL,v,val,0) #define NEW_CVASGN(v,val) rb_node_newnode(NODE_CVASGN,v,val,0) -- cgit v1.2.3