remove mrb_str_buf_cat

It does the same as `mrb_str_cat`.
This commit is contained in:
cremno
2014-04-21 21:24:00 +02:00
parent db6e868265
commit bc23a5e9e5
4 changed files with 14 additions and 17 deletions
+6 -1
View File
@@ -66,7 +66,6 @@ mrb_value mrb_str_substr(mrb_state *mrb, mrb_value str, mrb_int beg, mrb_int len
mrb_value mrb_string_type(mrb_state *mrb, mrb_value str);
mrb_value mrb_check_string_type(mrb_state *mrb, mrb_value str);
mrb_value mrb_str_buf_new(mrb_state *mrb, size_t capa);
mrb_value mrb_str_buf_cat(mrb_state *mrb, mrb_value str, const char *ptr, size_t len);
char *mrb_string_value_cstr(mrb_state *mrb, mrb_value *ptr);
char *mrb_string_value_ptr(mrb_state *mrb, mrb_value ptr);
@@ -96,6 +95,12 @@ mrb_str_cat2(mrb_state *mrb, mrb_value str, const char *ptr) {
return mrb_str_cat_cstr(mrb, str, ptr);
}
static inline mrb_value
mrb_str_buf_cat(mrb_state *mrb, mrb_value str, const char *ptr, size_t len)
{
return mrb_str_cat(mrb, str, ptr, len);
}
#if defined(__cplusplus)
} /* extern "C" { */
#endif