mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02: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
7
node.h
7
node.h
|
@ -488,11 +488,12 @@ VALUE rb_gvar_defined(struct rb_global_entry *);
|
|||
const struct kwtable *rb_reserved_word(const char *, unsigned int);
|
||||
|
||||
struct rb_args_info {
|
||||
long pre_args_num; /* count of mandatory pre-arguments */
|
||||
NODE *pre_init;
|
||||
|
||||
long post_args_num; /* count of mandatory post-arguments */
|
||||
NODE *post_init;
|
||||
|
||||
int pre_args_num; /* count of mandatory pre-arguments */
|
||||
int post_args_num; /* count of mandatory post-arguments */
|
||||
|
||||
ID first_post_arg;
|
||||
|
||||
ID rest_arg;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue