Rename API mrb_str_cat2() to mrb_str_cat_cstr(). This is for naming orthogonality. mrb_str_cat2() is also left for backward compatibility.

This commit is contained in:
Masaki Muranaka
2013-03-23 16:29:30 +09:00
parent 92821cf2ef
commit 0cedf8fa02
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -2548,7 +2548,7 @@ mrb_str_cat(mrb_state *mrb, mrb_value str, const char *ptr, mrb_int len)
}
mrb_value
mrb_str_cat2(mrb_state *mrb, mrb_value str, const char *ptr)
mrb_str_cat_cstr(mrb_state *mrb, mrb_value str, const char *ptr)
{
return mrb_str_cat(mrb, str, ptr, strlen(ptr));
}