diff options
author | S.H <gamelinks007@gmail.com> | 2021-06-01 16:59:33 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 00:59:33 -0700 |
commit | d627b75e016c855fe4c921170a76773f6da7f163 (patch) | |
tree | d49a17dbb0d66217f19e877579813a88cec0ffb4 /re.c | |
parent | b70fdf1b55beb9344d97b47d0587471d23b280df (diff) | |
download | ruby-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |