mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Rename rb_ary_tmp_new to rb_ary_hidden_new
rb_ary_tmp_new suggests that the array is temporary in some way, but that's not true, it just creates an array that's hidden and not on the transient heap. This commit renames it to rb_ary_hidden_new.
This commit is contained in:
parent
3f70aa6504
commit
efb91ff19b
Notes:
git
2022-07-26 22:12:36 +09:00
23 changed files with 59 additions and 61 deletions
|
@ -1763,7 +1763,7 @@ r_object_for(struct load_arg *arg, bool partial, int *ivp, VALUE extmod, int typ
|
|||
{
|
||||
VALUE path = r_unique(arg);
|
||||
VALUE m = rb_path_to_class(path);
|
||||
if (NIL_P(extmod)) extmod = rb_ary_tmp_new(0);
|
||||
if (NIL_P(extmod)) extmod = rb_ary_hidden_new(0);
|
||||
|
||||
if (RB_TYPE_P(m, T_CLASS)) { /* prepended */
|
||||
VALUE c;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue