diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-04-19 03:02:03 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-04-19 03:02:03 +0000 |
commit | 1d3fd0024d2e8821e863a39c53c38dfea65b6fa6 (patch) | |
tree | f21bece08a142f30fbda7c02cc7358657e22e0f5 /parse.y | |
parent | 763420cbcf964a50e16e2239ea55e80cb778ffae (diff) |
* eval.c (rb_eval): use ARGSCAT for NODE_OP_ASGN1.
[ruby-dev:28585]
* parse.y (list_concat): revert last change.
* parse.y (arg): use NODE_ARGSCAT for placeholder.
* lib/getoptlong.rb (GetoptLong::get): RDoc update patch from
mathew <meta at pobox.com>. [ruby-core:07738]
* variable.c (rb_const_set): raise error when no target klass is
supplied. [ruby-dev:28582]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -542,11 +542,7 @@ stmt : kALIAS fitem {lex_state = EXPR_FNAME;} fitem NODE *args; value_expr($6); - args = NEW_LIST($6); - if ($3 && nd_type($3) != NODE_ARRAY) - $3 = NEW_LIST($3); - $3 = list_append($3, NEW_NIL()); - list_concat(args, $3); + args = arg_concat(NEW_LIST($6), $3); if ($5 == tOROP) { $5 = 0; } @@ -1013,8 +1009,7 @@ arg : lhs '=' arg NODE *args; value_expr($6); - args = NEW_LIST($6); - list_concat(args, $3); + args = arg_concat(NEW_LIST($6), $3); if ($5 == tOROP) { $5 = 0; } @@ -4665,8 +4660,6 @@ list_concat(head, tail) { NODE *last; - if (nd_type(tail) != NODE_ARRAY) - return list_append(head, tail); if (head->nd_next) { last = head->nd_next->nd_end; } |