зеркало из https://github.com/github/ruby.git
* parse.y (call_args2): nd_head of NODE_BLOCK_PASS should be a list.
[ruby-core:12850] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
22179f8124
Коммит
3980699f54
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Oct 23 13:44:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* parse.y (call_args2): nd_head of NODE_BLOCK_PASS should be a list.
|
||||||
|
[ruby-core:12850]
|
||||||
|
|
||||||
Tue Oct 23 10:42:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Oct 23 10:42:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ruby.c (process_options): encoding set by command line option takes
|
* ruby.c (process_options): encoding set by command line option takes
|
||||||
|
|
2
parse.y
2
parse.y
|
@ -2341,7 +2341,7 @@ call_args2 : arg_value ',' args opt_block_arg
|
||||||
| arg_value ',' block_arg
|
| arg_value ',' block_arg
|
||||||
{
|
{
|
||||||
/*%%%*/
|
/*%%%*/
|
||||||
$$ = arg_blk_pass($1, $3);
|
$$ = arg_blk_pass(NEW_LIST($1), $3);
|
||||||
/*%
|
/*%
|
||||||
$$ = arg_add_block(arg_add(arg_new(), $1), $3);
|
$$ = arg_add_block(arg_add(arg_new(), $1), $3);
|
||||||
%*/
|
%*/
|
||||||
|
|
Загрузка…
Ссылка в новой задаче