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

ruby-changes:66392

From: S.H <ko1@a...>
Date: Tue, 1 Jun 2021 16:59:47 +0900 (JST)
Subject: [ruby-changes:66392] d627b75e01 (master): Add static modifier to C function in re.c (#3153)

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

From d627b75e016c855fe4c921170a76773f6da7f163 Mon Sep 17 00:00:00 2001
From: "S.H" <gamelinks007@g...>
Date: Tue, 1 Jun 2021 16:59:33 +0900
Subject: Add static modifier to C function in re.c (#3153)

* add static modifier for rb_reg_eqq func

* add static modifier for rb_check_regexp_type func
---
 re.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/re.c b/re.c
index 4be5e8b..5809d26 100644
--- a/re.c
+++ b/re.c
@@ -3228,7 +3228,7 @@ rb_reg_match(VALUE re, VALUE str) https://github.com/ruby/ruby/blob/trunk/re.c#L3228
  *	/^[A-Z]*$/ === "HELLO" #=> true
  */
 
-VALUE
+static VALUE
 rb_reg_eqq(VALUE re, VALUE str)
 {
     long start;
@@ -3610,7 +3610,7 @@ rb_reg_options(VALUE re) https://github.com/ruby/ruby/blob/trunk/re.c#L3610
     return options;
 }
 
-VALUE
+static VALUE
 rb_check_regexp_type(VALUE re)
 {
     return rb_check_convert_type(re, T_REGEXP, "Regexp", "to_regexp");
-- 
cgit v1.1


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

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