From c9d01961f18d4fe5a3390322ba84af4a1b1ed6b5 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 8 Aug 2013 07:50:55 +0000 Subject: [PATCH] * 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 8 ++++++++ include/ruby/ruby.h | 1 + 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 438f12f27e..88649bb133 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Thu Aug 8 16:44:25 2013 Koichi Sasada + + * 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 * test/coverage/test_coverage.rb (TestCoverage#test_big_code): use `1' diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 575a2b61fc..9410c4c0e6 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1769,6 +1769,7 @@ int ruby_native_thread_p(void); /* 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