Avoid MRB_INLINE for mrb_str_modify(); ref #4579

Functions that are called infrequently need not to be inline.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-07-17 00:29:33 +09:00
parent 2add864164
commit b22bde6596
2 changed files with 9 additions and 7 deletions
+7
View File
@@ -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)
{