ruby-changes:57238
From: Kazuhiro <ko1@a...>
Date: Sat, 24 Aug 2019 21:27:10 +0900 (JST)
Subject: [ruby-changes:57238] Kazuhiro NISHIYAMA: 5d5502dc85 (master): Fix typos
https://git.ruby-lang.org/ruby.git/commit/?id=5d5502dc85 From 5d5502dc852cc7588c75c519f5c881ead577e827 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Sat, 24 Aug 2019 21:26:24 +0900 Subject: Fix typos diff --git a/parse.y b/parse.y index d33032d..0edbc56 100644 --- a/parse.y +++ b/parse.y @@ -168,7 +168,7 @@ struct local_vars { https://github.com/ruby/ruby/blob/trunk/parse.y#L168 }; enum { - ORDINAL_PARM = -1, + ORDINAL_PARAM = -1, NO_PARAM = 0, NUMPARAM_MAX = 100, }; @@ -3370,7 +3370,7 @@ opt_block_param : none https://github.com/ruby/ruby/blob/trunk/parse.y#L3370 block_param_def : '|' opt_bv_decl '|' { p->cur_arg = 0; - p->max_numparam = ORDINAL_PARM; + p->max_numparam = ORDINAL_PARAM; /*%%%*/ $$ = 0; /*% %*/ @@ -3378,7 +3378,7 @@ block_param_def : '|' opt_bv_decl '|' https://github.com/ruby/ruby/blob/trunk/parse.y#L3378 } | tOROP { - p->max_numparam = ORDINAL_PARM; + p->max_numparam = ORDINAL_PARAM; /*%%%*/ $$ = 0; /*% %*/ @@ -3387,7 +3387,7 @@ block_param_def : '|' opt_bv_decl '|' https://github.com/ruby/ruby/blob/trunk/parse.y#L3387 | '|' block_param opt_bv_decl '|' { p->cur_arg = 0; - p->max_numparam = ORDINAL_PARM; + p->max_numparam = ORDINAL_PARAM; /*%%%*/ $$ = $2; /*% %*/ @@ -3465,7 +3465,7 @@ f_larglist : '(' f_args opt_bv_decl ')' https://github.com/ruby/ruby/blob/trunk/parse.y#L3465 { /*%%%*/ $$ = $2; - p->max_numparam = ORDINAL_PARM; + p->max_numparam = ORDINAL_PARAM; /*% %*/ /*% ripper: paren!($2) %*/ } @@ -3473,7 +3473,7 @@ f_larglist : '(' f_args opt_bv_decl ')' https://github.com/ruby/ruby/blob/trunk/parse.y#L3473 { /*%%%*/ if (!args_info_empty_p($1->nd_ainfo)) - p->max_numparam = ORDINAL_PARM; + p->max_numparam = ORDINAL_PARAM; /*% %*/ $$ = $1; } @@ -4862,7 +4862,7 @@ f_norm_arg : f_bad_arg https://github.com/ruby/ruby/blob/trunk/parse.y#L4862 | tIDENTIFIER { formal_argument(p, get_id($1)); - p->max_numparam = ORDINAL_PARM; + p->max_numparam = ORDINAL_PARAM; $$ = $1; } ; @@ -4925,7 +4925,7 @@ f_label : tLABEL https://github.com/ruby/ruby/blob/trunk/parse.y#L4925 ID id = get_id($1); arg_var(p, formal_argument(p, id)); p->cur_arg = id; - p->max_numparam = ORDINAL_PARM; + p->max_numparam = ORDINAL_PARAM; $$ = $1; } ; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/