mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/option.c (sockopt_inspect): use rb_str_cat2 and
rb_str_append. * ext/socket/ancdata.c (ancillary_inspect): refined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f1192452a9
commit
622f45fccb
3 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
|||
Tue May 4 12:38:40 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/option.c (sockopt_inspect): use rb_str_cat2 and
|
||||
rb_str_append.
|
||||
|
||||
* ext/socket/ancdata.c (ancillary_inspect): refined.
|
||||
|
||||
Tue May 4 11:48:06 2010 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/ancdata.c (ancillary_inspect): use rb_str_cat2 and
|
||||
|
|
|
@ -1066,9 +1066,8 @@ ancillary_inspect(VALUE self)
|
|||
}
|
||||
|
||||
if (!inspected) {
|
||||
data = rb_str_dump(data);
|
||||
rb_str_cat2(ret, " ");
|
||||
rb_str_append(ret, data);
|
||||
rb_str_append(ret, rb_str_dump(data));
|
||||
}
|
||||
|
||||
rb_str_cat2(ret, ">");
|
||||
|
|
|
@ -633,8 +633,8 @@ sockopt_inspect(VALUE self)
|
|||
}
|
||||
|
||||
if (!inspected) {
|
||||
data = rb_str_dump(data);
|
||||
rb_str_catf(ret, " %s", StringValueCStr(data));
|
||||
rb_str_cat2(ret, " ");
|
||||
rb_str_append(ret, rb_str_dump(data));
|
||||
}
|
||||
|
||||
rb_str_cat2(ret, ">");
|
||||
|
|
Loading…
Reference in a new issue