summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-12-01 16:34:59 +0900
committerKoichi Sasada <ko1@atdot.net>2020-12-01 18:16:23 +0900
commit764de7566ffa3fe828abf13ec93d76515ba27dd1 (patch)
tree3611b0c03eedc8fad41a7783860cdb04e9c67355 /internal
parentd5e16161f6871793bf2f148b5a6901a1a3f6d326 (diff)
should not use rb_str_modify(), too
Same as 8247b8edde, should not use rb_str_modify() here. https://bugs.ruby-lang.org/issues/17343#change-88858
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3833
Diffstat (limited to 'internal')
-rw-r--r--internal/string.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/string.h b/internal/string.h
index 5c9f615ac5..091035d92c 100644
--- a/internal/string.h
+++ b/internal/string.h
@@ -42,6 +42,8 @@ VALUE rb_str_initialize(VALUE str, const char *ptr, long len, rb_encoding *enc);
size_t rb_str_memsize(VALUE);
char *rb_str_to_cstr(VALUE str);
const char *ruby_escaped_char(int c);
+void rb_str_make_independent(VALUE str);
+
static inline bool STR_EMBED_P(VALUE str);
static inline bool STR_SHARED_P(VALUE str);
static inline VALUE QUOTE(VALUE v);