[前][次][番号順一覧][スレッド一覧]

ruby-changes:59034

From: Takashi <ko1@a...>
Date: Mon, 2 Dec 2019 10:36:05 +0900 (JST)
Subject: [ruby-changes:59034] de74d2c3b0 (master): Simplify variable declaration by C99

https://git.ruby-lang.org/ruby.git/commit/?id=de74d2c3b0

From de74d2c3b0005048a2c4433bde68b9be10c86f01 Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Sun, 1 Dec 2019 17:32:50 -0800
Subject: Simplify variable declaration by C99


diff --git a/mjit.c b/mjit.c
index 93845cd..d8e431a 100644
--- a/mjit.c
+++ b/mjit.c
@@ -768,14 +768,12 @@ mjit_init(const struct mjit_options *opts) https://github.com/ruby/ruby/blob/trunk/mjit.c#L768
     cc_added_args = split_flags(opts->debug_flags);
     xfree(opts->debug_flags);
 #if MJIT_CFLAGS_PIPE
-    { // eliminate a flag incompatible with `-pipe`
-        size_t i, j;
-        for (i = 0, j = 0; i < sizeof(CC_COMMON_ARGS) / sizeof(char *); i++) {
-            if (CC_COMMON_ARGS[i] && strncmp("-save-temps", CC_COMMON_ARGS[i], strlen("-save-temps")) == 0)
-                continue; // skip -save-temps flag
-            cc_common_args[j] = CC_COMMON_ARGS[i];
-            j++;
-        }
+    // eliminate a flag incompatible with `-pipe`
+    for (size_t i = 0, j = 0; i < sizeof(CC_COMMON_ARGS) / sizeof(char *); i++) {
+        if (CC_COMMON_ARGS[i] && strncmp("-save-temps", CC_COMMON_ARGS[i], strlen("-save-temps")) == 0)
+            continue; // skip -save-temps flag
+        cc_common_args[j] = CC_COMMON_ARGS[i];
+        j++;
     }
 #endif
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]