diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-10-04 09:34:06 -0700 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-10-04 10:25:46 -0700 |
| commit | 577ff858bce3c9620c763d6481b082253f7e2bfd (patch) | |
| tree | fc3277f42451b71ba2e0980128828e300ffb60d9 | |
| parent | 01c462ce6aef82fe6dcdf54a4a3b33f1bc2d96b2 (diff) | |
Make the function names consistent
| -rw-r--r-- | ruby.c | 2 | ||||
| -rw-r--r-- | yjit.h | 2 | ||||
| -rw-r--r-- | yjit/src/options.rs | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -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); @@ -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, |
