summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-07-27 15:28:23 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2023-07-27 15:30:10 -0700
commit97219721752e7cc1eda51131d6a3cd753d37276c (patch)
treecd797f16d54a35098125e46f2a7564fb1bb45e44 /re.c
parent5669a28fde3b767953b5a7d6e63cd8e53f0185eb (diff)
Resurrect rb_reg_prepare_re C API
Existing strscan releases rely on this C API. It means that the current Ruby master doesn't work if your Gemfile.lock has strscan unless it's locked to 3.0.7, which is not released yet. To fix it, let's not remove the C API we've exposed to users.
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index 5ae896d2aa..abab264f7d 100644
--- a/re.c
+++ b/re.c
@@ -1575,7 +1575,7 @@ rb_reg_prepare_enc(VALUE re, VALUE str, int warn)
return enc;
}
-static regex_t *
+regex_t *
rb_reg_prepare_re(VALUE re, VALUE str)
{
int r;