aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-03-18 13:03:56 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-03-18 15:03:14 -0400
commitb9908ea666e9a710adbba10468ded8f20dfa915f (patch)
tree35d2436fa00bb31faf202a3eeb82caba7d81b86b /eval.c
parent0ef2923c2b9afb76b3a1cebc56ebabc71c9a2ba8 (diff)
downloadruby-b9908ea666e9a710adbba10468ded8f20dfa915f.tar.gz
Make a few functions static
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/eval.c b/eval.c
index ed8a88c52b..f6a51d2bfb 100644
--- a/eval.c
+++ b/eval.c
@@ -38,7 +38,7 @@
#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)
}
/*! \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)
/*!
* \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)
/*!
* \private
- * \todo can be static?
*/
-void
+static void
rb_using_module(const rb_cref_t *cref, VALUE module)
{
Check_Type(module, T_MODULE);