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

ruby-changes:40811

From: normal <ko1@a...>
Date: Sat, 5 Dec 2015 06:09:11 +0900 (JST)
Subject: [ruby-changes:40811] normal:r52890 (trunk): vm.c: make ruby_vm_*_ptr static

normal	2015-12-05 06:08:47 +0900 (Sat, 05 Dec 2015)

  New Revision: 52890

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

  Log:
    vm.c: make ruby_vm_*_ptr static
    
    No point in wasting space until we get MVM (if ever).
    
    * vm.c (ruby_vm_verbose_ptr): make static
      (ruby_vm_debug_ptr): ditto

  Modified files:
    trunk/ChangeLog
    trunk/vm.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52889)
+++ ChangeLog	(revision 52890)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Dec  5 06:03:54 2015  Eric Wong  <e@8...>
+
+	* vm.c (ruby_vm_verbose_ptr): make static
+	  (ruby_vm_debug_ptr): ditto
+
 Sat Dec  5 00:56:29 2015  Naohisa Goto  <ngotogenome@g...>
 
 	* include/ruby/ruby.h (RB_OBJ_TAINT): follow-up of r52881.
Index: vm.c
===================================================================
--- vm.c	(revision 52889)
+++ vm.c	(revision 52890)
@@ -2989,13 +2989,13 @@ Init_top_self(void) https://github.com/ruby/ruby/blob/trunk/vm.c#L2989
     rb_define_alias(rb_singleton_class(rb_vm_top_self()), "inspect", "to_s");
 }
 
-VALUE *
+static VALUE *
 ruby_vm_verbose_ptr(rb_vm_t *vm)
 {
     return &vm->verbose;
 }
 
-VALUE *
+static VALUE *
 ruby_vm_debug_ptr(rb_vm_t *vm)
 {
     return &vm->debug;

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

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