ruby-changes:48175
From: yui-knk <ko1@a...>
Date: Sat, 21 Oct 2017 23:51:12 +0900 (JST)
Subject: [ruby-changes:48175] yui-knk:r60289 (trunk): Do not pass a not used argument
yui-knk 2017-10-21 23:51:07 +0900 (Sat, 21 Oct 2017) New Revision: 60289 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60289 Log: Do not pass a not used argument * parse.y (new_op_assign_gen): new_op_assign_gen for ripper does not need column information. Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 60288) +++ parse.y (revision 60289) @@ -600,8 +600,8 @@ static VALUE new_qcall_gen(struct parser https://github.com/ruby/ruby/blob/trunk/parse.y#L600 #define new_command(m,a) dispatch2(command, (m), (a)); #define new_nil() Qnil -static VALUE new_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE op, VALUE rhs, int column); -#define new_op_assign(lhs, op, rhs, column) new_op_assign_gen(parser, (lhs), (op), (rhs), (column)) +static VALUE new_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE op, VALUE rhs); +#define new_op_assign(lhs, op, rhs, column) new_op_assign_gen(parser, (lhs), (op), (rhs)) static VALUE new_attr_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE type, VALUE attr, VALUE op, VALUE rhs); #define new_attr_op_assign(lhs, type, attr, op, rhs, column) new_attr_op_assign_gen(parser, (lhs), (type), (attr), (op), (rhs)) #define new_const_op_assign(lhs, op, rhs, column) new_op_assign(lhs, op, rhs, column) @@ -10764,7 +10764,7 @@ const_decl_gen(struct parser_params *par https://github.com/ruby/ruby/blob/trunk/parse.y#L10764 } #else static VALUE -new_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE op, VALUE rhs, int column) +new_op_assign_gen(struct parser_params *parser, VALUE lhs, VALUE op, VALUE rhs) { return dispatch3(opassign, lhs, op, rhs); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/