[前][次][番号順一覧][スレッド一覧]

ruby-changes:40397

From: normal <ko1@a...>
Date: Sat, 7 Nov 2015 11:41:02 +0900 (JST)
Subject: [ruby-changes:40397] normal:r52478 (trunk): thread.c (rb_cThreadShield): make static

normal	2015-11-07 11:40:33 +0900 (Sat, 07 Nov 2015)

  New Revision: 52478

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52478

  Log:
    thread.c (rb_cThreadShield): make static
    
    Nothing outside of thread.c accesses this variable, so avoid
    cluttering up the global namespace with it.

  Modified files:
    trunk/ChangeLog
    trunk/thread.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52477)
+++ ChangeLog	(revision 52478)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Nov  7 11:40:05 2015  Eric Wong  <e@8...>
+
+	* thread.c (rb_cThreadShield): make static
+
 Sat Nov  7 09:51:38 2015  Koichi Sasada  <ko1@a...>
 
 	* vm_trace.c (rb_threadptr_exec_event_hooks_orig):
Index: thread.c
===================================================================
--- thread.c	(revision 52477)
+++ thread.c	(revision 52478)
@@ -75,7 +75,7 @@ https://github.com/ruby/ruby/blob/trunk/thread.c#L75
 #define THREAD_DEBUG 0
 #endif
 
-VALUE rb_cThreadShield;
+static VALUE rb_cThreadShield;
 
 static VALUE sym_immediate;
 static VALUE sym_on_blocking;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]