diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-02 14:51:19 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-02 14:51:19 +0000 |
| commit | 5c09236c417a9430d9a14d51b019f7382ae0ad10 (patch) | |
| tree | b91d85c99f8824a495ee7f3f00a77851a8a7c299 | |
| parent | b5c6181a7ea0f95135741f35e729efa741de21f0 (diff) | |
| download | ruby-5c09236c417a9430d9a14d51b019f7382ae0ad10.tar.gz ruby-5c09236c417a9430d9a14d51b019f7382ae0ad10.tar.xz ruby-5c09236c417a9430d9a14d51b019f7382ae0ad10.zip | |
* parse.y (f_arg): f_norm_arg is a VALUE in ripper, not an ID.
fixed: [ruby-dev:26942]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 13 | ||||
| -rw-r--r-- | parse.y | 18 |
2 files changed, 23 insertions, 8 deletions
@@ -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> * eval.c (rb_call0): wrong condition for $SAFE restoration. 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 - work (gives wrong order of arguments). + * ext/tk/lib/multi-tk.rb: On Tcl8.5, MultiTkIp#invoke_hidden doesn't + work (gives wrong order of arguments). - * ext/tk/lib/multi-tk.rb: add MultiTkIp#invoke_hidden_on_namespace - to support '-namespace' option of 'interp invokehidden' command + * ext/tk/lib/multi-tk.rb: add MultiTkIp#invoke_hidden_on_namespace + to support '-namespace' option of 'interp invokehidden' command on Tcl8.5. Wed Aug 31 14:41:30 2005 NAKAMURA Usaku <usa@ruby-lang.org> @@ -4095,15 +4095,25 @@ f_norm_arg : tCONSTANT 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 { + /*%%%*/ + VALUE arg = ID2SYM($3); + /*% + VALUE arg = $3; + %*/ $$ = $1; - if (rb_ary_includes($$, ID2SYM($3))) { - yyerror("duplicated argument name"); + if (rb_ary_includes($$, arg)) { + yyerror("duplicated argument arg"); } - rb_ary_push($$, ID2SYM($3)); + rb_ary_push($$, arg); } ; |
