ruby-changes:24328
From: nobu <ko1@a...>
Date: Sat, 14 Jul 2012 02:32:10 +0900 (JST)
Subject: [ruby-changes:24328] nobu:r36379 (trunk): intern.h: fix declaration
nobu 2012-07-14 02:31:58 +0900 (Sat, 14 Jul 2012) New Revision: 36379 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36379 Log: intern.h: fix declaration * include/ruby/intern.h (rb_thread_blocking_region): fix declarations prototypes without arguments in C++ have different meanings than C. Modified files: trunk/ChangeLog trunk/include/ruby/intern.h Index: include/ruby/intern.h =================================================================== --- include/ruby/intern.h (revision 36378) +++ include/ruby/intern.h (revision 36379) @@ -824,9 +824,8 @@ typedef VALUE rb_blocking_function_t(void *); void rb_thread_check_ints(void); int rb_thread_interrupted(VALUE thval); -VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1, - rb_unblock_function_t *ubf, void *data2); -DEPRECATED(VALUE rb_thread_blocking_region()); +DEPRECATED(VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1, + rb_unblock_function_t *ubf, void *data2)); #define RUBY_UBF_IO ((rb_unblock_function_t *)-1) #define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1) VALUE rb_mutex_new(void); Index: ChangeLog =================================================================== --- ChangeLog (revision 36378) +++ ChangeLog (revision 36379) @@ -1,3 +1,8 @@ +Sat Jul 14 02:31:55 2012 Nobuyoshi Nakada <nobu@r...> + + * include/ruby/intern.h (rb_thread_blocking_region): fix declarations + prototypes without arguments in C++ have different meanings than C. + Thu Jul 12 12:32:26 2012 Nobuyoshi Nakada <nobu@r...> * test/runner.rb: skip default gems to get rid of loading old versions -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/