* dir.c (rb_glob): should have called rb_glob_caller().
[ruby-dev:24773] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0935d95369
commit
9f3d5e7172
@ -1,3 +1,8 @@
|
|||||||
|
Thu Nov 11 17:58:19 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* dir.c (rb_glob): should have called rb_glob_caller().
|
||||||
|
[ruby-dev:24773]
|
||||||
|
|
||||||
Thu Nov 11 16:56:10 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
Thu Nov 11 16:56:10 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* test/ruby/test_file.rb (test_truncate_wbuf): we want to test
|
* test/ruby/test_file.rb (test_truncate_wbuf): we want to test
|
||||||
|
8
array.c
8
array.c
@ -1148,9 +1148,8 @@ rb_ary_update(ary, beg, len, rpl)
|
|||||||
* the current capacity of the array, the array grows
|
* the current capacity of the array, the array grows
|
||||||
* automatically. A negative indices will count backward
|
* automatically. A negative indices will count backward
|
||||||
* from the end of the array. Inserts elements if _length_ is
|
* from the end of the array. Inserts elements if _length_ is
|
||||||
* zero. If +nil+ is used in the second and third form,
|
* zero. An +IndexError+ is raised if a negative index points
|
||||||
* deletes elements from _self_. An +IndexError+ is raised if a
|
* past the beginning of the array. See also
|
||||||
* negative index points past the beginning of the array. See also
|
|
||||||
* <code>Array#push</code>, and <code>Array#unshift</code>.
|
* <code>Array#push</code>, and <code>Array#unshift</code>.
|
||||||
*
|
*
|
||||||
* a = Array.new
|
* a = Array.new
|
||||||
@ -1160,7 +1159,8 @@ rb_ary_update(ary, beg, len, rpl)
|
|||||||
* a[0, 2] = "?" #=> ["?", 2, nil, "4"]
|
* a[0, 2] = "?" #=> ["?", 2, nil, "4"]
|
||||||
* a[0..2] = "A" #=> ["A", "4"]
|
* a[0..2] = "A" #=> ["A", "4"]
|
||||||
* a[-1] = "Z" #=> ["A", "Z"]
|
* a[-1] = "Z" #=> ["A", "Z"]
|
||||||
* a[1..-1] = nil #=> ["A"]
|
* a[1..-1] = nil #=> ["A", nil]
|
||||||
|
* a[1..-1] = [] #=> ["A"]
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
2
dir.c
2
dir.c
@ -1410,7 +1410,7 @@ rb_glob(path, func, arg)
|
|||||||
|
|
||||||
args.func = func;
|
args.func = func;
|
||||||
args.arg = arg;
|
args.arg = arg;
|
||||||
status = rb_glob2(rb_str_new2(path), 0, func, &args);
|
status = rb_glob2(rb_str_new2(path), 0, rb_glob_caller, &args);
|
||||||
|
|
||||||
if (status) rb_jump_tag(status);
|
if (status) rb_jump_tag(status);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user