• KOBAYASHI Shuji's avatar
    Avoid using `mrb_str_to_cstr` if possible · e2604c15
    KOBAYASHI Shuji authored
    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.
    e2604c15
file_test.c 7.92 KB