Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a few functions static #4285

Merged
merged 1 commit into from Mar 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 4 additions & 7 deletions eval.c
Expand Up @@ -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);

Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down