summaryrefslogtreecommitdiffhomepage
path: root/src/object.c
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-05-07 23:01:13 +0900
committerKOBAYASHI Shuji <[email protected]>2019-05-07 23:01:13 +0900
commit35943e7beb0e4fd22f2096b56817e0cf22b8cf42 (patch)
treef7db87b52bfd18ed33c4b0958be1b176f918a08c /src/object.c
parentc778c234b0aca91f358e86cc1bbf623f494a043c (diff)
downloadmruby-35943e7beb0e4fd22f2096b56817e0cf22b8cf42.tar.gz
mruby-35943e7beb0e4fd22f2096b56817e0cf22b8cf42.zip
Refactor `mrb_str_to_cstr` and `mrb_string_value_cstr`
- Extract null byte check to function. - Avoid string allocation if null byte is included. - Use `str_new` instead of `mrb_str_dup` + `mrb_str_modify`
Diffstat (limited to 'src/object.c')
0 files changed, 0 insertions, 0 deletions