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

ruby-changes:49800

From: shyouhei <ko1@a...>
Date: Thu, 18 Jan 2018 20:01:42 +0900 (JST)
Subject: [ruby-changes:49800] shyouhei:r61929 (trunk): usage analysis functions marke as static

shyouhei	2018-01-18 18:44:50 +0900 (Thu, 18 Jan 2018)

  New Revision: 61929

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

  Log:
    usage analysis functions marke as static

  Modified files:
    trunk/vm.c
Index: vm.c
===================================================================
--- vm.c	(revision 61928)
+++ vm.c	(revision 61929)
@@ -3329,9 +3329,9 @@ vm_analysis_register(int reg, int isset) https://github.com/ruby/ruby/blob/trunk/vm.c#L3329
 
 #undef HASH_ASET
 
-void (*ruby_vm_collect_usage_func_insn)(int insn) = vm_analysis_insn;
-void (*ruby_vm_collect_usage_func_operand)(int insn, int n, VALUE op) = vm_analysis_operand;
-void (*ruby_vm_collect_usage_func_register)(int reg, int isset) = vm_analysis_register;
+static void (*ruby_vm_collect_usage_func_insn)(int insn) = vm_analysis_insn;
+static void (*ruby_vm_collect_usage_func_operand)(int insn, int n, VALUE op) = vm_analysis_operand;
+static void (*ruby_vm_collect_usage_func_register)(int reg, int isset) = vm_analysis_register;
 
 /* :nodoc: */
 static VALUE
@@ -3359,9 +3359,9 @@ usage_analysis_register_stop(VALUE self) https://github.com/ruby/ruby/blob/trunk/vm.c#L3359
 
 #else
 
-void (*ruby_vm_collect_usage_func_insn)(int insn) = NULL;
-void (*ruby_vm_collect_usage_func_operand)(int insn, int n, VALUE op) = NULL;
-void (*ruby_vm_collect_usage_func_register)(int reg, int isset) = NULL;
+MAYBE_UNUSED(static void (*ruby_vm_collect_usage_func_insn)(int insn)) = NULL;
+MAYBE_UNUSED(static void (*ruby_vm_collect_usage_func_operand)(int insn, int n, VALUE op)) = NULL;
+MAYBE_UNUSED(static void (*ruby_vm_collect_usage_func_register)(int reg, int isset)) = NULL;
 
 #endif
 

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

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