diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-26 00:55:09 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-26 00:55:09 +0000 |
commit | 07a88b713df19bd7e36bbf1576d6231cdfb955a1 (patch) | |
tree | 3d0d1bc92620df23cf5e70ac0ca97051937a8dca /include/ruby | |
parent | 18684d9f7cb64b93ec610f1c1deeabcfea364c08 (diff) | |
download | ruby-07a88b713df19bd7e36bbf1576d6231cdfb955a1.tar.gz |
* include/ruby{io,sig}.h: moved to include/ruby/backward.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/backward/rubyio.h | 6 | ||||
-rw-r--r-- | include/ruby/backward/rubysig.h | 33 |
2 files changed, 39 insertions, 0 deletions
diff --git a/include/ruby/backward/rubyio.h b/include/ruby/backward/rubyio.h new file mode 100644 index 0000000000..d5246db546 --- /dev/null +++ b/include/ruby/backward/rubyio.h @@ -0,0 +1,6 @@ +#if defined __GNUC__ +#warning use "ruby/io.h" instead of "rubyio.h" +#elif defined _MSC_VER || defined __BORLANDC__ +#pragma message("warning: use \"ruby/io.h\" instead of \"rubyio.h\"") +#endif +#include "ruby/io.h" diff --git a/include/ruby/backward/rubysig.h b/include/ruby/backward/rubysig.h new file mode 100644 index 0000000000..6a0cf0ef9c --- /dev/null +++ b/include/ruby/backward/rubysig.h @@ -0,0 +1,33 @@ +/********************************************************************** + + rubysig.h - + + $Author$ + $Date$ + created at: Wed Aug 16 01:15:38 JST 1995 + + Copyright (C) 1993-2008 Yukihiro Matsumoto + +**********************************************************************/ + +#if defined __GNUC__ +#warning rubysig.h is obsolete +#elif defined _MSC_VER || defined __BORLANDC__ +#pragma message("warning: rubysig.h is obsolete") +#endif + +#ifndef RUBYSIG_H +#define RUBYSIG_H +#include "ruby/ruby.h" + +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); +#define TRAP_END rb_thread_blocking_region_end(__region);} while (0) +#define RUBY_CRITICAL(statements) do {statements;} while (0) +#define DEFER_INTS (0) +#define ENABLE_INTS (1) +#define ALLOW_INTS do {CHECK_INTS;} while (0) +#define CHECK_INTS rb_thread_check_ints() +#endif |