diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 07:28:51 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-25 07:28:51 +0000 |
commit | 0f9257d2094b4041d4326e7abe06ba8b6f5d6053 (patch) | |
tree | dafc232ad589926fc75187211ab0affba010e77c /ext | |
parent | e461d2fa77a7e3c99e4fb5ab0292a8d2b33f5571 (diff) | |
download | ruby-0f9257d2094b4041d4326e7abe06ba8b6f5d6053.tar.gz ruby-0f9257d2094b4041d4326e7abe06ba8b6f5d6053.tar.xz ruby-0f9257d2094b4041d4326e7abe06ba8b6f5d6053.zip |
* include/ruby/ruby.h, thread.c: rename is_ruby_native_thread() to
ruby_native_thread_p().
* ext/tk/tcltklib.c: apply it.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/tk/tcltklib.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c index baa28c964..df70e67c9 100644 --- a/ext/tk/tcltklib.c +++ b/ext/tk/tcltklib.c @@ -1298,7 +1298,7 @@ eventloop_sleep(dummy) #if 0 #ifdef HAVE_NATIVETHREAD - if (!is_ruby_native_thread()) { + if (!ruby_native_thread_p()) { rb_bug("cross-thread violation on eventloop_sleep()"); } #endif @@ -1310,7 +1310,7 @@ eventloop_sleep(dummy) #if 0 #ifdef HAVE_NATIVETHREAD - if (!is_ruby_native_thread()) { + if (!ruby_native_thread_p()) { rb_bug("cross-thread violation on eventloop_sleep()"); } #endif @@ -2457,7 +2457,7 @@ tcl_protect(interp, proc, data) #if 0 #ifdef HAVE_NATIVETHREAD - if (!is_ruby_native_thread()) { + if (!ruby_native_thread_p()) { rb_bug("cross-thread violation on tcl_protect()"); } #endif @@ -2866,7 +2866,7 @@ ip_rbUpdateCommand(clientData, interp, objc, objv) } #if 0 #ifdef HAVE_NATIVETHREAD - if (!is_ruby_native_thread()) { + if (!ruby_native_thread_p()) { rb_bug("cross-thread violation on ip_ruby_eval()"); } #endif @@ -3015,7 +3015,7 @@ ip_rb_threadUpdateCommand(clientData, interp, objc, objv) } #if 0 #ifdef HAVE_NATIVETHREAD - if (!is_ruby_native_thread()) { + if (!ruby_native_thread_p()) { rb_bug("cross-thread violation on ip_ruby_eval()"); } #endif @@ -3194,7 +3194,7 @@ ip_rbVwaitCommand(clientData, interp, objc, objv) Tcl_Preserve(interp); #if 0 #ifdef HAVE_NATIVETHREAD - if (!is_ruby_native_thread()) { + if (!ruby_native_thread_p()) { rb_bug("cross-thread violation on ip_ruby_eval()"); } #endif @@ -5964,7 +5964,7 @@ eval_queue_handler(evPtr, flags) if (rb_safe_level() != q->safe_level) { #if 0 #ifdef HAVE_NATIVETHREAD - if (!is_ruby_native_thread()) { + if (!ruby_native_thread_p()) { rb_bug("cross-thread violation on eval_queue_handler()"); } #endif @@ -8384,7 +8384,7 @@ Init_tcltklib() /* if ruby->nativethread-supprt and tcltklib->doen't, the following will cause link-error. */ - is_ruby_native_thread(); + ruby_native_thread_p(); /* --------------------------------------------------------------- */ |