mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* node.h (rb_args_info): change pre_args_num and post_args_num as
int, to match with rb_iseq_t. * parse.y (new_args_gen): check overflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c5e372ff27
commit
731e45216a
4 changed files with 15 additions and 7 deletions
4
node.c
4
node.c
|
@ -850,9 +850,9 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
|
|||
ANN("method parameters");
|
||||
ANN("format: def method_name(.., [nd_opt=some], *[nd_rest], [nd_pid], .., &[nd_body])");
|
||||
ANN("example: def foo(a, b, opt1=1, opt2=2, *rest, y, z, &blk); end");
|
||||
F_LONG(nd_ainfo->pre_args_num, "count of mandatory (pre-)arguments");
|
||||
F_INT(nd_ainfo->pre_args_num, "count of mandatory (pre-)arguments");
|
||||
F_NODE(nd_ainfo->pre_init, "initialization of (pre-)arguments");
|
||||
F_LONG(nd_ainfo->post_args_num, "count of mandatory post-arguments");
|
||||
F_INT(nd_ainfo->post_args_num, "count of mandatory post-arguments");
|
||||
F_NODE(nd_ainfo->post_init, "initialization of post-arguments");
|
||||
F_ID(nd_ainfo->first_post_arg, "first post argument");
|
||||
F_ID(nd_ainfo->rest_arg, "rest argument");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue