summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorS.H <gamelinks007@gmail.com>2021-06-01 16:59:33 +0900
committerGitHub <noreply@github.com>2021-06-01 00:59:33 -0700
commitd627b75e016c855fe4c921170a76773f6da7f163 (patch)
treed49a17dbb0d66217f19e877579813a88cec0ffb4 /re.c
parentb70fdf1b55beb9344d97b47d0587471d23b280df (diff)
downloadruby-d627b75e016c855fe4c921170a76773f6da7f163.tar.gz
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
Diffstat (limited to 're.c')
-rw-r--r--re.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/re.c b/re.c
index 4be5e8beb0..5809d26bf3 100644
--- a/re.c
+++ b/re.c
@@ -3228,7 +3228,7 @@ rb_reg_match(VALUE re, VALUE str)
* /^[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)
return options;
}
-VALUE
+static VALUE
rb_check_regexp_type(VALUE re)
{
return rb_check_convert_type(re, T_REGEXP, "Regexp", "to_regexp");