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

ruby-changes:70221

From: Nobuyoshi <ko1@a...>
Date: Wed, 15 Dec 2021 15:04:57 +0900 (JST)
Subject: [ruby-changes:70221] f471cf295b (master): Symbols closed to env should be static

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

From f471cf295bf093d51b6258338d5e7add0ce962b4 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 21 Jul 2021 12:06:16 +0900
Subject: Symbols closed to env should be static

---
 hash.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hash.c b/hash.c
index 58a775f8533..b81e206ab19 100644
--- a/hash.c
+++ b/hash.c
@@ -4810,9 +4810,9 @@ extern char **environ; https://github.com/ruby/ruby/blob/trunk/hash.c#L4810
 #define ENVNMATCH(s1, s2, n) (memcmp((s1), (s2), (n)) == 0)
 #endif
 
-rb_nativethread_lock_t env_lock;
+static rb_nativethread_lock_t env_lock;
 
-const char*
+static const char*
 getenv_with_lock(const char *name)
 {
     rb_native_mutex_lock(&env_lock);
-- 
cgit v1.2.1


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

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