ruby-changes:49504
From: mame <ko1@a...>
Date: Sat, 6 Jan 2018 00:16:47 +0900 (JST)
Subject: [ruby-changes:49504] mame:r61619 (trunk): node_h (NEW_DEFN): remove unused argument
mame 2018-01-06 00:16:42 +0900 (Sat, 06 Jan 2018) New Revision: 61619 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61619 Log: node_h (NEW_DEFN): remove unused argument Modified files: trunk/node.h trunk/parse.y Index: node.h =================================================================== --- node.h (revision 61618) +++ node.h (revision 61619) @@ -363,7 +363,7 @@ typedef struct RNode { https://github.com/ruby/ruby/blob/trunk/node.h#L363 #define NEW_NODE(t,a0,a1,a2) rb_node_newnode((t),(VALUE)(a0),(VALUE)(a1),(VALUE)(a2)) -#define NEW_DEFN(i,a,d,p) NEW_NODE(NODE_DEFN,0,i,NEW_SCOPE(a,d)) +#define NEW_DEFN(i,a,d) NEW_NODE(NODE_DEFN,0,i,NEW_SCOPE(a,d)) #define NEW_DEFS(r,i,a,d) NEW_NODE(NODE_DEFS,r,i,NEW_SCOPE(a,d)) #define NEW_SCOPE(a,b) NEW_NODE(NODE_SCOPE,local_tbl(),b,a) #define NEW_BLOCK(a) NEW_NODE(NODE_BLOCK,a,0,0) Index: parse.y =================================================================== --- parse.y (revision 61618) +++ parse.y (revision 61619) @@ -3077,7 +3077,7 @@ primary : literal https://github.com/ruby/ruby/blob/trunk/parse.y#L3077 /*%%%*/ NODE *body = remove_begin($6); reduce_nodes(&body); - $$ = NEW_DEFN($2, $5, body, METHOD_VISI_PRIVATE); + $$ = NEW_DEFN($2, $5, body); $$->nd_defn->nd_loc = @$; set_line_body(body, $<num>1); nd_set_line($$, $<num>1); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/