зеркало из https://github.com/github/ruby.git
Make the function names consistent
This commit is contained in:
Родитель
01c462ce6a
Коммит
577ff858bc
2
ruby.c
2
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);
|
||||
|
|
2
yjit.h
2
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
|
||||
|
|
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче