ruby-changes:3187
From: ko1@a...
Date: 25 Dec 2007 16:29:18 +0900
Subject: [ruby-changes:3187] ko1 - Ruby:r14680 (trunk): * include/ruby/ruby.h, thread.c: rename is_ruby_native_thread() to
ko1 2007-12-25 16:28:51 +0900 (Tue, 25 Dec 2007)
New Revision: 14680
Modified files:
trunk/ChangeLog
trunk/ext/tk/tcltklib.c
trunk/include/ruby/ruby.h
trunk/thread.c
Log:
* include/ruby/ruby.h, thread.c: rename is_ruby_native_thread() to
ruby_native_thread_p().
* ext/tk/tcltklib.c: apply it.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/ruby.h?r1=14680&r2=14679
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14680&r2=14679
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/thread.c?r1=14680&r2=14679
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/tk/tcltklib.c?r1=14680&r2=14679
Index: include/ruby/ruby.h
===================================================================
--- include/ruby/ruby.h (revision 14679)
+++ include/ruby/ruby.h (revision 14680)
@@ -946,7 +946,7 @@
#define RUBY_VM 1 /* YARV */
#define HAVE_NATIVETHREAD
-int is_ruby_native_thread(void);
+int ruby_native_thread_p(void);
#define RUBY_EVENT_NONE 0x00
#define RUBY_EVENT_LINE 0x01
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14679)
+++ ChangeLog (revision 14680)
@@ -1,3 +1,10 @@
+Tue Dec 25 16:26:48 2007 Koichi Sasada <ko1@a...>
+
+ * include/ruby/ruby.h, thread.c: rename is_ruby_native_thread() to
+ ruby_native_thread_p().
+
+ * ext/tk/tcltklib.c: apply it.
+
Tue Dec 25 16:15:15 2007 Nobuyoshi Nakada <nobu@r...>
* common.mk (clean-enc): clean encoding objects.
Index: thread.c
===================================================================
--- thread.c (revision 14679)
+++ thread.c (revision 14680)
@@ -3119,7 +3119,7 @@
}
int
-is_ruby_native_thread(void)
+ruby_native_thread_p(void)
{
rb_thread_t *rb_thread_check_ptr(rb_thread_t *ptr);
rb_thread_t *th = ruby_thread_from_native();
Index: ext/tk/tcltklib.c
===================================================================
--- ext/tk/tcltklib.c (revision 14679)
+++ ext/tk/tcltklib.c (revision 14680)
@@ -1298,7 +1298,7 @@
#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 @@
#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 @@
#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 @@
}
#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 @@
}
#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 @@
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 @@
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 @@
/* if ruby->nativethread-supprt and tcltklib->doen't,
the following will cause link-error. */
- is_ruby_native_thread();
+ ruby_native_thread_p();
/* --------------------------------------------------------------- */
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml