ruby-changes:50198
From: nobu <ko1@a...>
Date: Fri, 9 Feb 2018 00:00:32 +0900 (JST)
Subject: [ruby-changes:50198] nobu:r62316 (trunk): mjit.c: argument arrays
nobu 2018-02-09 00:00:27 +0900 (Fri, 09 Feb 2018) New Revision: 62316 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62316 Log: mjit.c: argument arrays * mjit.c (compile_c_to_so): constified constat array and make variable arrays local. Modified files: trunk/mjit.c Index: mjit.c =================================================================== --- mjit.c (revision 62315) +++ mjit.c (revision 62316) @@ -658,9 +658,9 @@ static int https://github.com/ruby/ruby/blob/trunk/mjit.c#L658 compile_c_to_so(const char *c_file, const char *so_file) { int exit_code; - static const char *input[] = {NULL, NULL}; - static const char *output[] = {"-o", NULL, NULL}; - const char *libs[] = { + const char *input[] = {NULL, NULL}; + const char *output[] = {"-o", NULL, NULL}; + static const char *const libs[] = { #ifdef _MSC_VER LIBRUBYARG_SHARED, "-link", -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/