ruby-changes:31831
From: nobu <ko1@a...>
Date: Fri, 29 Nov 2013 16:59:32 +0900 (JST)
Subject: [ruby-changes:31831] nobu:r43910 (trunk): ruby/ruby.h: RB_BLOCK_CALL_FUNC_ARGLIST
nobu 2013-11-29 16:59:14 +0900 (Fri, 29 Nov 2013) New Revision: 43910 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43910 Log: ruby/ruby.h: RB_BLOCK_CALL_FUNC_ARGLIST * include/ruby/ruby.h (RB_BLOCK_CALL_FUNC_ARGLIST): for declaration argument list of rb_block_call_func. Modified files: trunk/ChangeLog trunk/array.c trunk/enum.c trunk/enumerator.c trunk/ext/-test-/bug-3571/bug.c trunk/ext/dbm/dbm.c trunk/ext/gdbm/gdbm.c trunk/ext/openssl/ossl_asn1.c trunk/ext/openssl/ossl_pkcs7.c trunk/ext/openssl/ossl_ssl.c trunk/ext/openssl/ossl_x509name.c trunk/ext/pathname/pathname.c trunk/ext/racc/cparse/cparse.c trunk/ext/sdbm/init.c trunk/ext/win32ole/win32ole.c trunk/include/ruby/ruby.h trunk/io.c trunk/process.c trunk/range.c trunk/thread.c Index: array.c =================================================================== --- array.c (revision 43909) +++ array.c (revision 43910) @@ -2616,7 +2616,7 @@ rb_ary_bsearch(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L2616 static VALUE -sort_by_i(VALUE i, VALUE dummy, int argc, VALUE *argv, VALUE blockarg) +sort_by_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, dummy)) { return rb_yield(i); } @@ -3169,7 +3169,7 @@ rb_ary_delete_if(VALUE ary) https://github.com/ruby/ruby/blob/trunk/array.c#L3169 } static VALUE -take_i(VALUE val, VALUE cbarg, int argc, const VALUE *argv, VALUE blockarg) +take_i(RB_BLOCK_CALL_FUNC_ARGLIST(val, cbarg)) { VALUE *args = (VALUE *)cbarg; if (args[1]-- == 0) rb_iter_break(); Index: include/ruby/ruby.h =================================================================== --- include/ruby/ruby.h (revision 43909) +++ include/ruby/ruby.h (revision 43910) @@ -1493,8 +1493,10 @@ PRINTF_ARGS(void rb_compile_warn(const c https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1493 #define RB_IO_WAIT_READABLE 0 #define RB_IO_WAIT_WRITABLE 1 -typedef VALUE rb_block_call_func(VALUE, VALUE, int, VALUE*, VALUE); #define RUBY_BLOCK_CALL_FUNC_TAKES_BLOCKARG 1 +#define RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg) \ + VALUE yielded_arg, VALUE callback_arg, int argc, VALUE *argv, VALUE blockarg +typedef VALUE rb_block_call_func(RB_BLOCK_CALL_FUNC_ARGLIST(yielded_arg, callback_arg)); #if defined RB_BLOCK_CALL_FUNC_STRICT && RB_BLOCK_CALL_FUNC_STRICT typedef rb_block_call_func *rb_block_call_func_t; Index: ChangeLog =================================================================== --- ChangeLog (revision 43909) +++ ChangeLog (revision 43910) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Nov 29 16:59:07 2013 Nobuyoshi Nakada <nobu@r...> + + * include/ruby/ruby.h (RB_BLOCK_CALL_FUNC_ARGLIST): for declaration + argument list of rb_block_call_func. + Fri Nov 29 11:26:43 2013 Nobuyoshi Nakada <nobu@r...> * include/ruby/ruby.h (rb_block_call_func): add blockarg. block Index: enumerator.c =================================================================== --- enumerator.c (revision 43909) +++ enumerator.c (revision 43910) @@ -493,7 +493,7 @@ enumerator_each(int argc, VALUE *argv, V https://github.com/ruby/ruby/blob/trunk/enumerator.c#L493 } static VALUE -enumerator_with_index_i(VALUE val, VALUE m, int argc, VALUE *argv, VALUE blockarg) +enumerator_with_index_i(RB_BLOCK_CALL_FUNC_ARGLIST(val, m)) { VALUE *memo = (VALUE *)m; VALUE idx = *memo; @@ -557,7 +557,7 @@ enumerator_each_with_index(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L557 } static VALUE -enumerator_with_object_i(VALUE val, VALUE memo, int argc, VALUE *argv, VALUE blockarg) +enumerator_with_object_i(RB_BLOCK_CALL_FUNC_ARGLIST(val, memo)) { if (argc <= 1) return rb_yield_values(2, val, memo); @@ -604,7 +604,7 @@ enumerator_with_object(VALUE obj, VALUE https://github.com/ruby/ruby/blob/trunk/enumerator.c#L604 } static VALUE -next_ii(VALUE i, VALUE obj, int argc, VALUE *argv, VALUE blockarg) +next_ii(RB_BLOCK_CALL_FUNC_ARGLIST(i, obj)) { struct enumerator *e = enumerator_ptr(obj); VALUE feedvalue = Qnil; @@ -1147,7 +1147,7 @@ static VALUE yielder_yield_push(VALUE ob https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1147 } static VALUE -yielder_yield_i(VALUE obj, VALUE memo, int argc, VALUE *argv, VALUE blockarg) +yielder_yield_i(RB_BLOCK_CALL_FUNC_ARGLIST(obj, memo)) { return rb_yield_values2(argc, argv); } @@ -1318,7 +1318,7 @@ lazy_receiver_size(VALUE generator, VALU https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1318 } static VALUE -lazy_init_iterator(VALUE val, VALUE m, int argc, VALUE *argv, VALUE blockarg) +lazy_init_iterator(RB_BLOCK_CALL_FUNC_ARGLIST(val, m)) { VALUE result; if (argc == 1) { @@ -1344,7 +1344,7 @@ lazy_init_iterator(VALUE val, VALUE m, i https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1344 } static VALUE -lazy_init_block_i(VALUE val, VALUE m, int argc, VALUE *argv, VALUE blockarg) +lazy_init_block_i(RB_BLOCK_CALL_FUNC_ARGLIST(val, m)) { rb_block_call(m, id_each, argc-1, argv+1, lazy_init_iterator, val); return Qnil; @@ -1504,7 +1504,7 @@ lazy_to_enum(int argc, VALUE *argv, VALU https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1504 } static VALUE -lazy_map_func(VALUE val, VALUE m, int argc, VALUE *argv, VALUE blockarg) +lazy_map_func(RB_BLOCK_CALL_FUNC_ARGLIST(val, m)) { VALUE result = rb_yield_values2(argc - 1, &argv[1]); @@ -1525,7 +1525,7 @@ lazy_map(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1525 } static VALUE -lazy_flat_map_i(VALUE i, VALUE yielder, int argc, VALUE *argv, VALUE blockarg) +lazy_flat_map_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, yielder)) { return rb_funcall2(yielder, id_yield, argc, argv); } @@ -1554,7 +1554,7 @@ lazy_flat_map_to_ary(VALUE obj, VALUE yi https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1554 } static VALUE -lazy_flat_map_func(VALUE val, VALUE m, int argc, VALUE *argv, VALUE blockarg) +lazy_flat_map_func(RB_BLOCK_CALL_FUNC_ARGLIST(val, m)) { VALUE result = rb_yield_values2(argc - 1, &argv[1]); if (RB_TYPE_P(result, T_ARRAY)) { @@ -1610,7 +1610,7 @@ lazy_flat_map(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1610 } static VALUE -lazy_select_func(VALUE val, VALUE m, int argc, VALUE *argv, VALUE blockarg) +lazy_select_func(RB_BLOCK_CALL_FUNC_ARGLIST(val, m)) { VALUE element = rb_enum_values_pack(argc - 1, argv + 1); @@ -1633,7 +1633,7 @@ lazy_select(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1633 } static VALUE -lazy_reject_func(VALUE val, VALUE m, int argc, VALUE *argv, VALUE blockarg) +lazy_reject_func(RB_BLOCK_CALL_FUNC_ARGLIST(val, m)) { VALUE element = rb_enum_values_pack(argc - 1, argv + 1); @@ -1656,7 +1656,7 @@ lazy_reject(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1656 } static VALUE -lazy_grep_func(VALUE val, VALUE m, int argc, VALUE *argv, VALUE blockarg) +lazy_grep_func(RB_BLOCK_CALL_FUNC_ARGLIST(val, m)) { VALUE i = rb_enum_values_pack(argc - 1, argv + 1); VALUE result = rb_funcall(m, id_eqq, 1, i); @@ -1668,7 +1668,7 @@ lazy_grep_func(VALUE val, VALUE m, int a https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1668 } static VALUE -lazy_grep_iter(VALUE val, VALUE m, int argc, VALUE *argv, VALUE blockarg) +lazy_grep_iter(RB_BLOCK_CALL_FUNC_ARGLIST(val, m)) { VALUE i = rb_enum_values_pack(argc - 1, argv + 1); VALUE result = rb_funcall(m, id_eqq, 1, i); @@ -1702,7 +1702,7 @@ next_stopped(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1702 } static VALUE -lazy_zip_arrays_func(VALUE val, VALUE arrays, int argc, VALUE *argv, VALUE blockarg) +lazy_zip_arrays_func(RB_BLOCK_CALL_FUNC_ARGLIST(val, arrays)) { VALUE yielder, ary, memo; long i, count; @@ -1722,7 +1722,7 @@ lazy_zip_arrays_func(VALUE val, VALUE ar https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1722 } static VALUE -lazy_zip_func(VALUE val, VALUE zip_args, int argc, VALUE *argv, VALUE blockarg) +lazy_zip_func(RB_BLOCK_CALL_FUNC_ARGLIST(val, zip_args)) { VALUE yielder, ary, arg, v; long i; @@ -1787,7 +1787,7 @@ lazy_zip(int argc, VALUE *argv, VALUE ob https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1787 } static VALUE -lazy_take_func(VALUE val, VALUE args, int argc, VALUE *argv, VALUE blockarg) +lazy_take_func(RB_BLOCK_CALL_FUNC_ARGLIST(val, args)) { long remain; VALUE memo = rb_attr_get(argv[0], id_memo); @@ -1836,7 +1836,7 @@ lazy_take(VALUE obj, VALUE n) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1836 } static VALUE -lazy_take_while_func(VALUE val, VALUE args, int argc, VALUE *argv, VALUE blockarg) +lazy_take_while_func(RB_BLOCK_CALL_FUNC_ARGLIST(val, args)) { VALUE result = rb_yield_values2(argc - 1, &argv[1]); if (!RTEST(result)) return Qundef; @@ -1870,7 +1870,7 @@ lazy_drop_size(VALUE generator, VALUE ar https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1870 } static VALUE -lazy_drop_func(VALUE val, VALUE args, int argc, VALUE *argv, VALUE blockarg) +lazy_drop_func(RB_BLOCK_CALL_FUNC_ARGLIST(val, args)) { long remain; VALUE memo = rb_attr_get(argv[0], id_memo); @@ -1900,7 +1900,7 @@ lazy_drop(VALUE obj, VALUE n) https://github.com/ruby/ruby/blob/trunk/enumerator.c#L1900 } static VALUE -lazy_drop_while_func(VALUE val, VALUE args, int argc, VALUE *argv, VALUE blockarg) +lazy_drop_while_func(RB_BLOCK_CALL_FUNC_ARGLIST(val, args)) { VALUE memo = rb_attr_get(argv[0], id_memo); if (NIL_P(memo) && !RTEST(rb_yield_values2(argc - 1, &argv[1]))) { Index: enum.c =================================================================== --- enum.c (revision 43909) +++ enum.c (revision 43910) @@ -44,7 +44,7 @@ rb_enum_values_pack(int argc, VALUE *arg https://github.com/ruby/ruby/blob/trunk/enum.c#L44 #define enum_yield rb_yield_values2 static VALUE -grep_i(VALUE i, VALUE args, int argc, VALUE *argv, VALUE blockarg) +grep_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, args)) { NODE *memo = RNODE(args); ENUM_WANT_SVALUE(); @@ -56,7 +56,7 @@ grep_i(VALUE i, VALUE args, int argc, VA https://github.com/ruby/ruby/blob/trunk/enum.c#L56 } static VALUE -grep_iter_i(VALUE i, VALUE args, int argc, VALUE *argv, VALUE blockarg) +grep_iter_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, args)) { NODE *memo = RNODE(args); ENUM_WANT_SVALUE(); @@ -97,7 +97,7 @@ enum_grep(VALUE obj, VALUE pat) https://github.com/ruby/ruby/blob/trunk/enum.c#L97 } static VALUE -count_i(VALUE i, VALUE memop, int argc, VALUE *argv, VALUE blockarg) +count_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memop)) { NODE *memo = RNODE(memop); @@ -110,7 +110,7 @@ count_i(VALUE i, VALUE memop, int argc, https://github.com/ruby/ruby/blob/trunk/enum.c#L110 } static VALUE -count_iter_i(VALUE i, VALUE memop, int argc, VALUE *argv, VALUE blockarg) +count_iter_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memop)) { NODE *memo = RNODE(memop); @@ -121,7 +121,7 @@ count_iter_i(VALUE i, VALUE memop, int a https://github.com/ruby/ruby/blob/trunk/enum.c#L121 } static VALUE -count_all_i(VALUE i, VALUE memop, int argc, VALUE *argv, VALUE blockarg) +count_all_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memop)) { NODE *memo = RNODE(memop); @@ -176,7 +176,7 @@ enum_count(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/enum.c#L176 } static VALUE -find_i(VALUE i, VALUE memop, int argc, VALUE *argv, VALUE blockarg) +find_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memop)) { ENUM_WANT_SVALUE(); @@ -228,7 +228,7 @@ enum_find(int argc, VALUE *argv, VALUE o https://github.com/ruby/ruby/blob/trunk/enum.c#L228 } static VALUE -find_index_i(VALUE i, VALUE memop, int argc, VALUE *argv, VALUE blockarg) +find_index_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memop)) { NODE *memo = RNODE(memop); @@ -243,7 +243,7 @@ find_index_i(VALUE i, VALUE memop, int a https://github.com/ruby/ruby/blob/trunk/enum.c#L243 } static VALUE -find_index_iter_i(VALUE i, VALUE memop, int argc, VALUE *argv, VALUE blockarg) +find_index_iter_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memop)) { NODE *memo = RNODE(memop); @@ -299,7 +299,7 @@ enum_find_index(int argc, VALUE *argv, V https://github.com/ruby/ruby/blob/trunk/enum.c#L299 } static VALUE -find_all_i(VALUE i, VALUE ary, int argc, VALUE *argv, VALUE blockarg) +find_all_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, ary)) { ENUM_WANT_SVALUE(); @@ -351,7 +351,7 @@ enum_find_all(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enum.c#L351 } static VALUE -reject_i(VALUE i, VALUE ary, int argc, VALUE *argv, VALUE blockarg) +reject_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, ary)) { ENUM_WANT_SVALUE(); @@ -392,7 +392,7 @@ enum_reject(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enum.c#L392 } static VALUE -collect_i(VALUE i, VALUE ary, int argc, VALUE *argv, VALUE blockarg) +collect_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, ary)) { rb_ary_push(ary, enum_yield(argc, argv)); @@ -400,7 +400,7 @@ collect_i(VALUE i, VALUE ary, int argc, https://github.com/ruby/ruby/blob/trunk/enum.c#L400 } static VALUE -collect_all(VALUE i, VALUE ary, int argc, VALUE *argv, VALUE blockarg) +collect_all(RB_BLOCK_CALL_FUNC_ARGLIST(i, ary)) { rb_thread_check_ints(); rb_ary_push(ary, rb_enum_values_pack(argc, argv)); @@ -439,7 +439,7 @@ enum_collect(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enum.c#L439 } static VALUE -flat_map_i(VALUE i, VALUE ary, int argc, VALUE *argv, VALUE blockarg) +flat_map_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, ary)) { VALUE tmp; @@ -510,7 +510,7 @@ enum_to_a(int argc, VALUE *argv, VALUE o https://github.com/ruby/ruby/blob/trunk/enum.c#L510 } static VALUE -enum_to_h_i(VALUE i, VALUE hash, int argc, VALUE *argv, VALUE blockarg) +enum_to_h_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, hash)) { ENUM_WANT_SVALUE(); rb_thread_check_ints(); @@ -543,7 +543,7 @@ enum_to_h(int argc, VALUE *argv, VALUE o https://github.com/ruby/ruby/blob/trunk/enum.c#L543 } static VALUE -inject_i(VALUE i, VALUE p, int argc, VALUE *argv, VALUE blockarg) +inject_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, p)) { NODE *memo = RNODE(p); @@ -560,7 +560,7 @@ inject_i(VALUE i, VALUE p, int argc, VAL https://github.com/ruby/ruby/blob/trunk/enum.c#L560 } static VALUE -inject_op_i(VALUE i, VALUE p, int argc, VALUE *argv, VALUE blockarg) +inject_op_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, p)) { NODE *memo = RNODE(p); VALUE name; @@ -662,7 +662,7 @@ enum_inject(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/enum.c#L662 } static VALUE -partition_i(VALUE i, VALUE arys, int argc, VALUE *argv, VALUE blockarg) +partition_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, arys)) { NODE *memo = RNODE(arys); VALUE ary; @@ -707,7 +707,7 @@ enum_partition(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enum.c#L707 } static VALUE -group_by_i(VALUE i, VALUE hash, int argc, VALUE *argv, VALUE blockarg) +group_by_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, hash)) { VALUE group; VALUE values; @@ -756,7 +756,7 @@ enum_group_by(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enum.c#L756 } static VALUE -first_i(VALUE i, VALUE params, int argc, VALUE *argv, VALUE blockarg) +first_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, params)) { NODE *memo = RNODE(params); ENUM_WANT_SVALUE(); @@ -832,7 +832,7 @@ struct sort_by_data { https://github.com/ruby/ruby/blob/trunk/enum.c#L832 }; static VALUE -sort_by_i(VALUE i, VALUE _data, int argc, VALUE *argv, VALUE blockarg) +sort_by_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, _data)) { struct sort_by_data *data = (struct sort_by_data *)&RNODE(_data)->u1; VALUE ary = data->ary; @@ -1003,13 +1003,13 @@ enum_sort_by(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enum.c#L1003 static VALUE enum_##name##_func(VALUE result, NODE *memo); \ \ static VALUE \ -name##_i(VALUE i, VALUE memo, int argc, VALUE *argv, VALUE blockarg) \ +name##_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memo)) \ { \ return enum_##name##_func(rb_enum_values_pack(argc, argv), RNODE(memo)); \ } \ \ static VALUE \ -name##_iter_i(VALUE i, VALUE memo, int argc, VALUE *argv, VALUE blockarg) \ +name##_iter_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memo)) \ { \ return enum_##name##_func(enum_yield(argc, argv), RNODE(memo)); \ } \ @@ -1162,7 +1162,7 @@ enum_none(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enum.c#L1162 } static VALUE -min_i(VALUE i, VALUE args, int argc, VALUE *argv, VALUE blockarg) +min_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, args)) { VALUE cmp; NODE *memo = RNODE(args); @@ -1182,7 +1182,7 @@ min_i(VALUE i, VALUE args, int argc, VAL https://github.com/ruby/ruby/blob/trunk/enum.c#L1182 } static VALUE -min_ii(VALUE i, VALUE args, int argc, VALUE *argv, VALUE blockarg) +min_ii(RB_BLOCK_CALL_FUNC_ARGLIST(i, args)) { VALUE cmp; NODE *memo = RNODE(args); @@ -1234,7 +1234,7 @@ enum_min(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enum.c#L1234 } static VALUE -max_i(VALUE i, VALUE args, int argc, VALUE *argv, VALUE blockarg) +max_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, args)) { NODE *memo = RNODE(args); VALUE cmp; @@ -1254,7 +1254,7 @@ max_i(VALUE i, VALUE args, int argc, VAL https://github.com/ruby/ruby/blob/trunk/enum.c#L1254 } static VALUE -max_ii(VALUE i, VALUE args, int argc, VALUE *argv, VALUE blockarg) +max_ii(RB_BLOCK_CALL_FUNC_ARGLIST(i, args)) { NODE *memo = RNODE(args); VALUE cmp; @@ -1334,7 +1334,7 @@ minmax_i_update(VALUE i, VALUE j, struct https://github.com/ruby/ruby/blob/trunk/enum.c#L1334 } static VALUE -minmax_i(VALUE i, VALUE _memo, int argc, VALUE *argv, VALUE blockarg) +minmax_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, _memo)) { struct minmax_t *memo = (struct minmax_t *)&RNODE(_memo)->u1.value; int n; @@ -1386,7 +1386,7 @@ minmax_ii_update(VALUE i, VALUE j, struc https://github.com/ruby/ruby/blob/trunk/enum.c#L1386 } static VALUE -minmax_ii(VALUE i, VALUE _memo, int argc, VALUE *argv, VALUE blockarg) +minmax_ii(RB_BLOCK_CALL_FUNC_ARGLIST(i, _memo)) { struct minmax_t *memo = (struct minmax_t *)&RNODE(_memo)->u1.value; int n; @@ -1458,7 +1458,7 @@ enum_minmax(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enum.c#L1458 } static VALUE -min_by_i(VALUE i, VALUE args, int argc, VALUE *argv, VALUE blockarg) +min_by_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, args)) { NODE *memo = RNODE(args); VALUE v; @@ -1504,7 +1504,7 @@ enum_min_by(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enum.c#L1504 } static VALUE -max_by_i(VALUE i, VALUE args, int argc, VALUE *argv, VALUE blockarg) +max_by_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, args)) { NODE *memo = RNODE(args); VALUE v; @@ -1580,7 +1580,7 @@ minmax_by_i_update(VALUE v1, VALUE v2, V https://github.com/ruby/ruby/blob/trunk/enum.c#L1580 } static VALUE -minmax_by_i(VALUE i, VALUE _memo, int argc, VALUE *argv, VALUE blockarg) +minmax_by_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, _memo)) { struct minmax_by_t *memo = MEMO_FOR(struct minmax_by_t, _memo); VALUE vi, vj, j; @@ -1656,7 +1656,7 @@ enum_minmax_by(VALUE obj) https://github.com/ruby/ruby/blob/trunk/enum.c#L1656 } static VALUE -member_i(VALUE iter, VALUE args, int argc, VALUE *argv, VALUE blockarg) +member_i(RB_BLOCK_CALL_FUNC_ARGLIST(iter, args)) { NODE *memo = RNODE(args); @@ -1690,7 +1690,7 @@ enum_member(VALUE obj, VALUE val) https://github.com/ruby/ruby/blob/trunk/enum.c#L1690 } static VALUE -each_with_index_i(VALUE i, VALUE memo, int argc, VALUE *argv, VALUE blockarg) +each_with_index_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, memo)) { long n = RNODE(memo)->u3.cnt++; @@ -1766,7 +1766,7 @@ enum_reverse_each(int argc, VALUE *argv, https://github.com/ruby/ruby/blob/trunk/enum.c#L1766 static VALUE -each_val_i(VALUE i, VALUE p, int argc, VALUE *argv, VALUE blockarg) +each_val_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, p)) { ENUM_WANT_SVALUE(); rb_yield(i); @@ -1811,7 +1811,7 @@ enum_each_entry(int argc, VALUE *argv, V https://github.com/ruby/ruby/blob/trunk/enum.c#L1811 } static VALUE -each_slice_i(VALUE i, VALUE m, int argc, VALUE *argv, VALUE blockarg) +each_slice_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, m)) { NODE *memo = RNODE(m); VALUE ary = memo->u1.value; @@ -1878,7 +1878,7 @@ enum_each_slice(VALUE obj, VALUE n) https://github.com/ruby/ruby/blob/trunk/enum.c#L1878 } static VALUE -each_cons_i(VALUE i, VALUE args, int argc, VALUE *argv, VALUE blockarg) +each_cons_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, args)) { NODE *memo = RNODE(args); VALUE ary = memo->u1.value; @@ -1946,7 +1946,7 @@ enum_each_cons(VALUE obj, VALUE n) https://github.com/ruby/ruby/blob/trunk/enum.c#L1946 } static VALUE -each_with_object_i(VALUE i, VALUE memo, int argc, VALUE *argv, VALUE blockarg) +each_with_object_i (... truncated) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/