[前][次][番号順一覧][スレッド一覧]

ruby-changes:30372

From: ko1 <ko1@a...>
Date: Thu, 8 Aug 2013 16:51:22 +0900 (JST)
Subject: [ruby-changes:30372] ko1:r42441 (trunk): * include/ruby/ruby.h: add old macro name `RUBY_EVENT_SWITCH'.

ko1	2013-08-08 16:50:55 +0900 (Thu, 08 Aug 2013)

  New Revision: 42441

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42441

  Log:
    * include/ruby/ruby.h: add old macro name `RUBY_EVENT_SWITCH'.
      This macro name is obsolete because it is renamed to
      RUBY_INTERNAL_EVENT_SWITCH, but it has compatibility problem
      using this macro name like ruby-prof.
      I want to remove this macro after ruby 2.1.

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/ruby.h
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h	(revision 42440)
+++ include/ruby/ruby.h	(revision 42441)
@@ -1769,6 +1769,7 @@ int ruby_native_thread_p(void); https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L1769
 
 /* internal events */
 #define RUBY_INTERNAL_EVENT_SWITCH        0x040000
+#define RUBY_EVENT_SWITCH                 0x040000 /* obsolete name. this macro is for compatibility */
                                        /* 0x080000 */
 #define RUBY_INTERNAL_EVENT_NEWOBJ        0x100000
 #define RUBY_INTERNAL_EVENT_FREEOBJ       0x200000
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42440)
+++ ChangeLog	(revision 42441)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Aug  8 16:44:25 2013  Koichi Sasada  <ko1@a...>
+
+	* include/ruby/ruby.h: add old macro name `RUBY_EVENT_SWITCH'.
+	  This macro name is obsolete because it is renamed to
+	  RUBY_INTERNAL_EVENT_SWITCH, but it has compatibility problem
+	  using this macro name like ruby-prof.
+	  I want to remove this macro after ruby 2.1.
+
 Thu Aug  8 15:37:53 2013  NAKAMURA Usaku  <usa@r...>
 
 	* test/coverage/test_coverage.rb (TestCoverage#test_big_code): use `1'

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]