ruby-changes:55009
From: nobu <ko1@a...>
Date: Mon, 11 Mar 2019 21:47:07 +0900 (JST)
Subject: [ruby-changes:55009] nobu:r67216 (trunk): parse.y: moved excessed_comma
nobu 2019-03-11 21:47:02 +0900 (Mon, 11 Mar 2019) New Revision: 67216 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67216 Log: parse.y: moved excessed_comma Modified files: trunk/parse.y Index: parse.y =================================================================== --- parse.y (revision 67215) +++ parse.y (revision 67216) @@ -315,6 +315,10 @@ static int parser_yyerror(struct parser_ https://github.com/ruby/ruby/blob/trunk/parse.y#L315 #define lambda_beginning_p() (p->lex.lpar_beg == p->lex.paren_nest) +#ifndef RIPPER +static const ID excessed_comma = 1; +#endif + static enum yytokentype yylex(YYSTYPE*, YYLTYPE*, struct parser_params*); #ifndef RIPPER @@ -3050,7 +3054,6 @@ block_param : f_arg ',' f_block_optarg ' https://github.com/ruby/ruby/blob/trunk/parse.y#L3054 { /*%%%*/ /* magic number for rest_id in iseq_set_arguments() */ - const ID excessed_comma = 1; $$ = new_args(p, $1, Qnone, excessed_comma, Qnone, new_args_tail(p, Qnone, Qnone, Qnone, &@1), &@$); /*% %*/ /*% ripper: new_args(p, $1, Qnone, excessed_comma!, Qnone, new_args_tail(p, Qnone, Qnone, Qnone, NULL), NULL) %*/ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/