summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-05-06 23:16:03 +0900
committerKOBAYASHI Shuji <[email protected]>2019-05-06 23:32:53 +0900
commite2604c1550562b6fa507570e817cadf9981e1c82 (patch)
treedf8e5d193871981b5814ee1b24f5095bb2904b33 /src/string.c
parent31cc8573f058e791c9a08735afa72678e5df7a46 (diff)
downloadmruby-e2604c1550562b6fa507570e817cadf9981e1c82.tar.gz
mruby-e2604c1550562b6fa507570e817cadf9981e1c82.zip
Avoid using `mrb_str_to_cstr` if possible
Because it always allocate new string. Replace with the followings: - Use `RSRING_PTR` if string is guaranteed to be null-terminated. - Use `mrb_string_value_cstr` or `mrb_get_args("z")` if return value isn't modified.
Diffstat (limited to 'src/string.c')
0 files changed, 0 insertions, 0 deletions