diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 13:44:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 13:44:21 +0000 |
commit | 5baafac0b73f8e242e93926bc02754fd821ba00d (patch) | |
tree | dee1fa24cce3260be5e6723dd13a411680d48e19 /include/ruby | |
parent | 411e9997d2062d7d871f8a4ffe810c8261be4b36 (diff) | |
download | ruby-5baafac0b73f8e242e93926bc02754fd821ba00d.tar.gz |
* include/ruby/backward/rubysig.h (rb_thread_blocking_region_begin),
(rb_thread_blocking_region_end): marked as deprecated.
* include/ruby/backward/rubysig.h (TRAP_BEG): fix for C++. a
patch from Aman Gupta at [ruby-core:21934]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/backward/rubysig.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/backward/rubysig.h b/include/ruby/backward/rubysig.h index ae70903394..3952f7e85e 100644 --- a/include/ruby/backward/rubysig.h +++ b/include/ruby/backward/rubysig.h @@ -28,9 +28,9 @@ extern "C" { #endif struct rb_blocking_region_buffer; -RUBY_EXTERN struct rb_blocking_region_buffer *rb_thread_blocking_region_begin(void); -RUBY_EXTERN void rb_thread_blocking_region_end(struct rb_blocking_region_buffer *); -#define TRAP_BEG do {void *__region = rb_thread_blocking_region_begin(void); +DEPRECATED(RUBY_EXTERN struct rb_blocking_region_buffer *rb_thread_blocking_region_begin(void)); +DEPRECATED(RUBY_EXTERN void rb_thread_blocking_region_end(struct rb_blocking_region_buffer *)); +#define TRAP_BEG do {struct rb_blocking_region_buffer *__region = rb_thread_blocking_region_begin(); #define TRAP_END rb_thread_blocking_region_end(__region);} while (0) #define RUBY_CRITICAL(statements) do {statements;} while (0) #define DEFER_INTS (0) |