* io.c (rb_f_p): RDoc update. a patch from murphy <murphy AT rubychan.de>.

[ruby-core:14010]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-12-14 08:38:18 +00:00
parent 269bd16b28
commit 11f3462fb7
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Fri Dec 14 16:10:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* io.c (rb_f_p): RDoc update. a patch from murphy <murphy AT rubychan.de>.
[ruby-core:14010]
Fri Dec 14 16:06:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org> Fri Dec 14 16:06:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* string.c (rb_str_cmp): encoding aware comparison. * string.c (rb_str_cmp): encoding aware comparison.

4
io.c
View File

@ -4333,7 +4333,9 @@ rb_p(VALUE obj) /* for debug print within C code */
/* /*
* call-seq: * call-seq:
* p(obj, ...) => nil * p(obj) => obj
* p(obj1, obj2, ...) => [obj, ...]
* p() => nil
* *
* For each object, directly writes * For each object, directly writes
* _obj_.+inspect+ followed by the current output * _obj_.+inspect+ followed by the current output

View File

@ -1410,7 +1410,7 @@ rb_str_cmp_m(VALUE str1, VALUE str2)
static VALUE static VALUE
rb_str_casecmp(VALUE str1, VALUE str2) rb_str_casecmp(VALUE str1, VALUE str2)
{ {
long i, len; long len;
int retval; int retval;
rb_encoding *enc; rb_encoding *enc;
char *p1, *p1end, *p2, *p2end; char *p1, *p1end, *p2, *p2end;