mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* array.c (each_internal): patch miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
02d76d0387
commit
513d286ed0
1 changed files with 0 additions and 36 deletions
36
array.c
36
array.c
|
@ -1245,42 +1245,6 @@ iter_unlock(VALUE ary)
|
|||
return ary;
|
||||
}
|
||||
|
||||
VALUE
|
||||
each_internal(VALUE ary)
|
||||
{
|
||||
long i;
|
||||
|
||||
for (i=0; i<RARRAY_LEN(ary); i++) {
|
||||
rb_yield(RARRAY_PTR(ary)[i]);
|
||||
}
|
||||
return ary;
|
||||
}
|
||||
|
||||
static VALUE
|
||||
iter_unlock(VALUE ary)
|
||||
{
|
||||
FL_UNSET(ary, ARY_TMPLOCK);
|
||||
return ary;
|
||||
}
|
||||
|
||||
VALUE
|
||||
each_internal(VALUE ary)
|
||||
{
|
||||
long i;
|
||||
|
||||
for (i=0; i<RARRAY_LEN(ary); i++) {
|
||||
rb_yield(RARRAY_PTR(ary)[i]);
|
||||
}
|
||||
return ary;
|
||||
}
|
||||
|
||||
static VALUE
|
||||
iter_unlock(VALUE ary)
|
||||
{
|
||||
FL_UNSET(ary, ARY_TMPLOCK);
|
||||
return ary;
|
||||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* array.each {|item| block } -> array
|
||||
|
|
Loading…
Reference in a new issue