From 1d1f98d49c9908f4e3928e582d31fd2e9f252f92 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 28 Jul 2019 07:33:21 +0900 Subject: Reuse match data * string.c (rb_str_split_m): reuse occupied match data. [Bug #16024] --- internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 4b4352d182..0c6341aad5 100644 --- a/internal.h +++ b/internal.h @@ -2040,6 +2040,7 @@ long rb_reg_search0(VALUE, VALUE, long, int, int); VALUE rb_reg_match_p(VALUE re, VALUE str, long pos); bool rb_reg_start_with_p(VALUE re, VALUE str); void rb_backref_set_string(VALUE string, long pos, long len); +void rb_match_unbusy(VALUE); int rb_match_count(VALUE match); int rb_match_nth_defined(int nth, VALUE match); VALUE rb_reg_new_ary(VALUE ary, int options); -- cgit v1.2.3