mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (f_arg): f_norm_arg is a VALUE in ripper, not an ID.
fixed: [ruby-dev:26942] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c3f0592267
commit
0c83f23272
2 changed files with 23 additions and 8 deletions
13
ChangeLog
13
ChangeLog
|
@ -1,14 +1,19 @@
|
||||||
|
Fri Sep 2 23:51:08 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* parse.y (f_arg): f_norm_arg is a VALUE in ripper, not an ID.
|
||||||
|
fixed: [ruby-dev:26942]
|
||||||
|
|
||||||
Thu Sep 1 17:11:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Thu Sep 1 17:11:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (rb_call0): wrong condition for $SAFE restoration.
|
* eval.c (rb_call0): wrong condition for $SAFE restoration.
|
||||||
|
|
||||||
Thu Sep 1 14:12:45 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
Thu Sep 1 14:12:45 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
* ext/tk/lib/multi-tk.rb: On Tcl8.5, MultiTkIp#invoke_hidden doesn't
|
* ext/tk/lib/multi-tk.rb: On Tcl8.5, MultiTkIp#invoke_hidden doesn't
|
||||||
work (gives wrong order of arguments).
|
work (gives wrong order of arguments).
|
||||||
|
|
||||||
* ext/tk/lib/multi-tk.rb: add MultiTkIp#invoke_hidden_on_namespace
|
* ext/tk/lib/multi-tk.rb: add MultiTkIp#invoke_hidden_on_namespace
|
||||||
to support '-namespace' option of 'interp invokehidden' command
|
to support '-namespace' option of 'interp invokehidden' command
|
||||||
on Tcl8.5.
|
on Tcl8.5.
|
||||||
|
|
||||||
Wed Aug 31 14:41:30 2005 NAKAMURA Usaku <usa@ruby-lang.org>
|
Wed Aug 31 14:41:30 2005 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
18
parse.y
18
parse.y
|
@ -4095,15 +4095,25 @@ f_norm_arg : tCONSTANT
|
||||||
|
|
||||||
f_arg : f_norm_arg
|
f_arg : f_norm_arg
|
||||||
{
|
{
|
||||||
$$ = rb_ary_new3(1, ID2SYM($1));
|
/*%%%*/
|
||||||
|
VALUE arg = ID2SYM($1);
|
||||||
|
/*%
|
||||||
|
VALUE arg = $1;
|
||||||
|
%*/
|
||||||
|
$$ = rb_ary_new3(1, arg);
|
||||||
}
|
}
|
||||||
| f_arg ',' f_norm_arg
|
| f_arg ',' f_norm_arg
|
||||||
{
|
{
|
||||||
|
/*%%%*/
|
||||||
|
VALUE arg = ID2SYM($3);
|
||||||
|
/*%
|
||||||
|
VALUE arg = $3;
|
||||||
|
%*/
|
||||||
$$ = $1;
|
$$ = $1;
|
||||||
if (rb_ary_includes($$, ID2SYM($3))) {
|
if (rb_ary_includes($$, arg)) {
|
||||||
yyerror("duplicated argument name");
|
yyerror("duplicated argument arg");
|
||||||
}
|
}
|
||||||
rb_ary_push($$, ID2SYM($3));
|
rb_ary_push($$, arg);
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue