ruby-changes:59020
From: Nobuyoshi <ko1@a...>
Date: Sun, 1 Dec 2019 21:26:06 +0900 (JST)
Subject: [ruby-changes:59020] 4e03a7298b (master): Constified mjit_init
https://git.ruby-lang.org/ruby.git/commit/?id=4e03a7298b From 4e03a7298b3a99de9c57f9a4934d38445cad1b10 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 1 Dec 2019 20:26:28 +0900 Subject: Constified mjit_init diff --git a/mjit.c b/mjit.c index 8094127..93845cd 100644 --- a/mjit.c +++ b/mjit.c @@ -741,7 +741,7 @@ split_flags(const char *flags) https://github.com/ruby/ruby/blob/trunk/mjit.c#L741 // processing ISeqs. The function should be called first for using MJIT. // If everything is successful, MJIT_INIT_P will be TRUE. void -mjit_init(struct mjit_options *opts) +mjit_init(const struct mjit_options *opts) { mjit_opts = *opts; mjit_enabled = true; diff --git a/mjit.h b/mjit.h index ff16c0f..256bf65 100644 --- a/mjit.h +++ b/mjit.h @@ -80,7 +80,7 @@ extern void rb_mjit_recompile_iseq(const rb_iseq_t *iseq); https://github.com/ruby/ruby/blob/trunk/mjit.h#L80 RUBY_SYMBOL_EXPORT_END extern bool mjit_compile(FILE *f, const rb_iseq_t *iseq, const char *funcname); -extern void mjit_init(struct mjit_options *opts); +extern void mjit_init(const struct mjit_options *opts); extern void mjit_gc_start_hook(void); extern void mjit_gc_exit_hook(void); extern void mjit_free_iseq(const rb_iseq_t *iseq); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/