diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-06-27 23:14:10 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-06-27 23:14:10 +0900 |
commit | 913e01e80ec5fd771ae096c992893d5e736e7fae (patch) | |
tree | d32c73f3a8cd5aa31b0bfbb0c8ce302f537c03dd /internal/re.h | |
parent | df5ae0a55005f7f02adbf21790300f28dc2e12fc (diff) |
Stop allocating unused backref strings at `defined?`
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7983
Diffstat (limited to 'internal/re.h')
-rw-r--r-- | internal/re.h | 1 |
1 files changed, 1 insertions, 0 deletions
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 */ |