ruby-changes:65550
From: Alan <ko1@a...>
Date: Fri, 19 Mar 2021 04:03:34 +0900 (JST)
Subject: [ruby-changes:65550] b9908ea666 (master): Make a few functions static
https://git.ruby-lang.org/ruby.git/commit/?id=b9908ea666 From b9908ea666e9a710adbba10468ded8f20dfa915f Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Thu, 18 Mar 2021 13:03:56 -0400 Subject: Make a few functions static --- eval.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/eval.c b/eval.c index ed8a88c..f6a51d2 100644 --- a/eval.c +++ b/eval.c @@ -38,7 +38,7 @@ https://github.com/ruby/ruby/blob/trunk/eval.c#L38 #include "vm_core.h" #include "ractor_core.h" -NORETURN(void rb_raise_jump(VALUE, VALUE)); +NORETURN(static void rb_raise_jump(VALUE, VALUE)); void rb_ec_clear_current_thread_trace_func(const rb_execution_context_t *ec); void rb_ec_clear_all_trace_func(const rb_execution_context_t *ec); @@ -891,9 +891,8 @@ rb_make_exception(int argc, const VALUE *argv) https://github.com/ruby/ruby/blob/trunk/eval.c#L891 } /*! \private - * \todo can be static? */ -void +static void rb_raise_jump(VALUE mesg, VALUE cause) { rb_execution_context_t *ec = GET_EC(); @@ -1412,9 +1411,8 @@ refinement_superclass(VALUE superclass) https://github.com/ruby/ruby/blob/trunk/eval.c#L1411 /*! * \private - * \todo can be static? */ -void +static void rb_using_refinement(rb_cref_t *cref, VALUE klass, VALUE module) { VALUE iclass, c, superclass = klass; @@ -1498,9 +1496,8 @@ using_module_recursive(const rb_cref_t *cref, VALUE klass) https://github.com/ruby/ruby/blob/trunk/eval.c#L1496 /*! * \private - * \todo can be static? */ -void +static void rb_using_module(const rb_cref_t *cref, VALUE module) { Check_Type(module, T_MODULE); -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/