From 913e01e80ec5fd771ae096c992893d5e736e7fae Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 27 Jun 2023 23:14:10 +0900 Subject: Stop allocating unused backref strings at `defined?` --- internal/re.h | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/re.h') diff --git a/internal/re.h b/internal/re.h index f85ec09ab3..3e20114665 100644 --- a/internal/re.h +++ b/internal/re.h @@ -23,5 +23,6 @@ void rb_backref_set_string(VALUE string, long pos, long len); void rb_match_unbusy(VALUE); int rb_match_count(VALUE match); VALUE rb_reg_new_ary(VALUE ary, int options); +VALUE rb_reg_last_defined(VALUE match); #endif /* INTERNAL_RE_H */ -- cgit v1.2.3