From 2baeb78294ecc18f2889eaa3d9a74d6f37ba8791 Mon Sep 17 00:00:00 2001 From: shugo Date: Thu, 15 Mar 2012 14:20:27 +0000 Subject: * enum.c (rb_enum_values_pack): rename from enum_values_pack, and remove static. * enumerator.c (lazy_init_iterator, lazy_init_yielder, lazy_select_func, lazy_reject_func, lazy_grep_func): handle multiple values correctly. * enumerator.c (lazy_grep): change the behavior when a block is given, to be consistent with Enumerable#grep. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ruby') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index cf36aa6265..e07f7fd781 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -198,6 +198,7 @@ VALUE rb_fiber_yield(int argc, VALUE *args); VALUE rb_fiber_current(void); VALUE rb_fiber_alive_p(VALUE); /* enum.c */ +VALUE rb_enum_values_pack(int, VALUE*); /* enumerator.c */ VALUE rb_enumeratorize(VALUE, VALUE, int, VALUE *); #define RETURN_ENUMERATOR(obj, argc, argv) do { \ -- cgit v1.2.3