summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-10-04 09:34:06 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-10-04 10:25:46 -0700
commit577ff858bce3c9620c763d6481b082253f7e2bfd (patch)
treefc3277f42451b71ba2e0980128828e300ffb60d9
parent01c462ce6aef82fe6dcdf54a4a3b33f1bc2d96b2 (diff)
Make the function names consistent
-rw-r--r--ruby.c2
-rw-r--r--yjit.h2
-rw-r--r--yjit/src/options.rs2
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,