summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-03 08:00:05 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-03 08:00:05 +0000
commit395b0f8825cafe5df1393accc40f5d4fd7ed5eb1 (patch)
treed06aba1c98e6b4d319551a42c8b5d7c464b621f4 /eval.c
parentfcf5e29f5380c1e18019fb884021500364e1c570 (diff)
downloadruby-395b0f8825cafe5df1393accc40f5d4fd7ed5eb1.tar.gz
ruby-395b0f8825cafe5df1393accc40f5d4fd7ed5eb1.tar.xz
ruby-395b0f8825cafe5df1393accc40f5d4fd7ed5eb1.zip
* include/ruby/signal.h: removed.
* common.mk, class.c, eval.c, eval_intern.h, file.c, gc.c, hash.c, io.c, process.c, signal.c: vm_core.h: ditto. Some unused external global variables are also removed. (rb_prohibit_interrupt, rb_trap_immediate, rb_trap_pending, rb_thread_critical) * ext/openssl/ossl_ssl.c, ext/openssl/ossl_x509store.c, ext/readline/readline.c, ext/socket/depend, ext/socket/socket.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/eval.c b/eval.c
index 142433ac9..5a78841cd 100644
--- a/eval.c
+++ b/eval.c
@@ -75,7 +75,6 @@ ruby_init(void)
#endif
ruby_prog_init();
- ALLOW_INTS;
}
POP_TAG();
@@ -731,31 +730,6 @@ rb_ensure(VALUE (*b_proc)(ANYARGS), VALUE data1, VALUE (*e_proc)(ANYARGS), VALUE
return result;
}
-VALUE
-rb_with_disable_interrupt(VALUE (*proc)(ANYARGS), VALUE data)
-{
- VALUE result = Qnil; /* OK */
- int status;
-
- DEFER_INTS;
- {
- int thr_critical = rb_thread_critical;
-
- rb_thread_critical = Qtrue;
- PUSH_TAG();
- if ((status = EXEC_TAG()) == 0) {
- result = (*proc) (data);
- }
- POP_TAG();
- rb_thread_critical = thr_critical;
- }
- ENABLE_INTS;
- if (status)
- JUMP_TAG(status);
-
- return result;
-}
-
static ID
frame_func_id(rb_control_frame_t *cfp)
{