summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-07-17 00:29:33 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-07-17 10:36:10 +0900
commitb22bde6596ece6f9e3ef245bbab13a9f664907a8 (patch)
tree5bed2c88a963ee1ef485246ed17d073cc2fc32fc /src
parent2add8641648e00717c97b730be8762aece80029e (diff)
downloadmruby-b22bde6596ece6f9e3ef245bbab13a9f664907a8.tar.gz
mruby-b22bde6596ece6f9e3ef245bbab13a9f664907a8.zip
Avoid `MRB_INLINE` for `mrb_str_modify()`; ref #4579
Functions that are called infrequently need not to be inline.
Diffstat (limited to 'src')
-rw-r--r--src/string.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/string.c b/src/string.c
index 6b7cced13..de8a15ba9 100644
--- a/src/string.c
+++ b/src/string.c
@@ -770,6 +770,13 @@ mrb_str_modify_keep_ascii(mrb_state *mrb, struct RString *s)
}
}
+MRB_API void
+mrb_str_modify(mrb_state *mrb, struct RString *s)
+{
+ mrb_str_modify_keep_ascii(mrb, s);
+ RSTR_UNSET_ASCII_FLAG(s);
+}
+
MRB_API mrb_value
mrb_str_resize(mrb_state *mrb, mrb_value str, mrb_int len)
{