diff options
| author | KOBAYASHI Shuji <[email protected]> | 2019-05-07 23:01:13 +0900 |
|---|---|---|
| committer | KOBAYASHI Shuji <[email protected]> | 2019-05-07 23:01:13 +0900 |
| commit | 35943e7beb0e4fd22f2096b56817e0cf22b8cf42 (patch) | |
| tree | f7db87b52bfd18ed33c4b0958be1b176f918a08c /src/object.c | |
| parent | c778c234b0aca91f358e86cc1bbf623f494a043c (diff) | |
| download | mruby-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
