ruby-changes:29605
From: nobu <ko1@a...>
Date: Wed, 26 Jun 2013 22:44:15 +0900 (JST)
Subject: [ruby-changes:29605] nobu:r41657 (trunk): intern.h: rb_enumeratorize_with_size with cast
nobu 2013-06-26 22:44:03 +0900 (Wed, 26 Jun 2013) New Revision: 41657 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41657 Log: intern.h: rb_enumeratorize_with_size with cast * include/ruby/intern.h (rb_enumeratorize_with_size): cast for backward compatibility. Modified files: trunk/ChangeLog trunk/include/ruby/intern.h Index: include/ruby/intern.h =================================================================== --- include/ruby/intern.h (revision 41656) +++ include/ruby/intern.h (revision 41657) @@ -200,6 +200,10 @@ VALUE rb_enum_values_pack(int, VALUE*); https://github.com/ruby/ruby/blob/trunk/include/ruby/intern.h#L200 VALUE rb_enumeratorize(VALUE, VALUE, int, VALUE *); typedef VALUE rb_enumerator_size_func(VALUE, VALUE, VALUE); VALUE rb_enumeratorize_with_size(VALUE, VALUE, int, VALUE *, rb_enumerator_size_func *); +#ifndef RUBY_EXPORT +#define rb_enumeratorize_with_size(obj, id, argc, argv, size_fn) \ + rb_enumeratorize_with_size(obj, id, argc, argv, (rb_enumerator_size_func *)(size_fn)) +#endif #define RETURN_SIZED_ENUMERATOR(obj, argc, argv, size_fn) do { \ if (!rb_block_given_p()) \ return rb_enumeratorize_with_size((obj), ID2SYM(rb_frame_this_func()),\ Index: ChangeLog =================================================================== --- ChangeLog (revision 41656) +++ ChangeLog (revision 41657) @@ -1,4 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 -Wed Jun 26 22:43:20 2013 Nobuyoshi Nakada <nobu@r...> +Wed Jun 26 22:44:00 2013 Nobuyoshi Nakada <nobu@r...> + + * include/ruby/intern.h (rb_enumeratorize_with_size): cast for + backward compatibility. * include/ruby/intern.h (rb_enumerator_size_func): define strict function declaration for rb_enumeratorize_with_size(). -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/