diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-04 12:00:24 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-04 12:00:24 +0000 |
commit | 80843ea156b7b2849b1fcc9764e85f70811cdd89 (patch) | |
tree | 2e4641fffcfc6c336d2326a2c0f0a6ac48ae7dfa /thread.c | |
parent | 0031967d2012896b7e86548a661cd0e1b3b52fa5 (diff) | |
download | ruby-80843ea156b7b2849b1fcc9764e85f70811cdd89.tar.gz |
* thread.c (rb_thread_check_trap_pending): added for compatibility.
* ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: remove ruby/signal.h
dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -890,6 +890,16 @@ rb_thread_check_ints(void) RUBY_VM_CHECK_INTS(); } +/* + * Hidden API for tcl/tk wrapper. + * There is no guarantee to perpetuate it. + */ +int +rb_thread_check_trap_pending(void) +{ + return GET_THREAD()->exec_signal != 0; +} + struct timeval rb_time_timeval(); void |