mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
string.c: alias of rb_str_buf_cat and rb_str_buf_cat2
* string.c (rb_str_cat, rb_str_cat2): make aliases of rb_str_buf_cat and rb_str_buf_cat2 respectively. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
df66229230
commit
3784395b8d
1 changed files with 2 additions and 11 deletions
13
string.c
13
string.c
|
|
@ -2063,17 +2063,8 @@ rb_str_buf_cat2(VALUE str, const char *ptr)
|
||||||
return rb_str_buf_cat(str, ptr, strlen(ptr));
|
return rb_str_buf_cat(str, ptr, strlen(ptr));
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
RUBY_ALIAS_FUNCTION(rb_str_cat(VALUE str, const char *ptr, long len), rb_str_buf_cat, (str, ptr, len))
|
||||||
rb_str_cat(VALUE str, const char *ptr, long len)
|
RUBY_ALIAS_FUNCTION(rb_str_cat2(VALUE str, const char *ptr), rb_str_buf_cat2, (str, ptr))
|
||||||
{
|
|
||||||
return rb_str_buf_cat(str, ptr, len);
|
|
||||||
}
|
|
||||||
|
|
||||||
VALUE
|
|
||||||
rb_str_cat2(VALUE str, const char *ptr)
|
|
||||||
{
|
|
||||||
return rb_str_buf_cat2(str, ptr);
|
|
||||||
}
|
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_enc_cr_str_buf_cat(VALUE str, const char *ptr, long len,
|
rb_enc_cr_str_buf_cat(VALUE str, const char *ptr, long len,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue