From 204929af9dfc7d483d69476325c1ceac1721e219 Mon Sep 17 00:00:00 2001 From: ko1 Date: Wed, 3 Sep 2008 08:00:05 +0000 Subject: * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@19080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 142433ac93..5a78841cdb 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) { -- cgit v1.2.3