mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mrb_str_cat2: deprecated since 0cedf8f
This commit is contained in:
+1
-1
@@ -443,7 +443,7 @@ mrb_any_to_s(mrb_state *mrb, mrb_value obj)
|
||||
const char *cname = mrb_obj_classname(mrb, obj);
|
||||
|
||||
mrb_str_buf_cat(mrb, str, "#<", 2);
|
||||
mrb_str_cat2(mrb, str, cname);
|
||||
mrb_str_cat_cstr(mrb, str, cname);
|
||||
mrb_str_cat(mrb, str, ":", 1);
|
||||
mrb_str_concat(mrb, str, mrb_ptr_to_str(mrb, mrb_cptr(obj)));
|
||||
mrb_str_buf_cat(mrb, str, ">", 1);
|
||||
|
||||
+1
-1
@@ -595,7 +595,7 @@ mrb_obj_iv_inspect(mrb_state *mrb, struct RObject *obj)
|
||||
mrb_value str = mrb_str_buf_new(mrb, 30);
|
||||
|
||||
mrb_str_buf_cat(mrb, str, "-<", 2);
|
||||
mrb_str_cat2(mrb, str, cn);
|
||||
mrb_str_cat_cstr(mrb, str, cn);
|
||||
mrb_str_cat(mrb, str, ":", 1);
|
||||
mrb_str_concat(mrb, str, mrb_ptr_to_str(mrb, obj));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user