From 577ff858bce3c9620c763d6481b082253f7e2bfd Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 4 Oct 2023 09:34:06 -0700 Subject: [PATCH] Make the function names consistent --- ruby.c | 2 +- yjit.h | 2 +- yjit/src/options.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ruby.c b/ruby.c index 8020d0da11..64120e21f3 100644 --- a/ruby.c +++ b/ruby.c @@ -422,7 +422,7 @@ usage(const char *name, int help, int highlight, int columns) SHOW(warn_categories[i]); #if USE_YJIT printf("%s""YJIT options:%s\n", sb, se); - rb_yjit_print_options(help, highlight, w, columns); + rb_yjit_show_usage(help, highlight, w, columns); #endif #if USE_RJIT printf("%s""RJIT options (experimental):%s\n", sb, se); diff --git a/yjit.h b/yjit.h index effca96dfe..2c7a735da7 100644 --- a/yjit.h +++ b/yjit.h @@ -43,7 +43,7 @@ void rb_yjit_iseq_free(void *payload); void rb_yjit_before_ractor_spawn(void); void rb_yjit_constant_ic_update(const rb_iseq_t *const iseq, IC ic, unsigned insn_idx); void rb_yjit_tracing_invalidate_all(void); -void rb_yjit_print_options(int help, int highlight, unsigned int w, int columns); +void rb_yjit_show_usage(int help, int highlight, unsigned int w, int columns); #else // !USE_YJIT diff --git a/yjit/src/options.rs b/yjit/src/options.rs index b0e8f0b5ee..f25e7f3618 100644 --- a/yjit/src/options.rs +++ b/yjit/src/options.rs @@ -246,7 +246,7 @@ pub fn parse_option(str_ptr: *const std::os::raw::c_char) -> Option<()> { /// Print YJIT options for `ruby --help`. #[no_mangle] -pub extern "C" fn rb_yjit_print_options(help: c_int, highlight: c_int, w: c_uint, columns: c_int) { +pub extern "C" fn rb_yjit_show_usage(help: c_int, highlight: c_int, w: c_uint, columns: c_int) { for &(name, description) in YJIT_OPTIONS.iter() { extern "C" { fn ruby_show_usage_line(name: *const c_char, secondary: *const c_char, description: *const c_char,