aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--io.c4
-rw-r--r--string.c2
3 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 96a2e967d0..839461d0fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* string.c (rb_str_cmp): encoding aware comparison.
diff --git a/io.c b/io.c
index f0d314396b..d62270ed7f 100644
--- a/io.c
+++ b/io.c
@@ -4333,7 +4333,9 @@ rb_p(VALUE obj) /* for debug print within C code */
/*
* call-seq:
- * p(obj, ...) => nil
+ * p(obj) => obj
+ * p(obj1, obj2, ...) => [obj, ...]
+ * p() => nil
*
* For each object, directly writes
* _obj_.+inspect+ followed by the current output
diff --git a/string.c b/string.c
index 217e255a90..0857596cd0 100644
--- a/string.c
+++ b/string.c
@@ -1410,7 +1410,7 @@ rb_str_cmp_m(VALUE str1, VALUE str2)
static VALUE
rb_str_casecmp(VALUE str1, VALUE str2)
{
- long i, len;
+ long len;
int retval;
rb_encoding *enc;
char *p1, *p1end, *p2, *p2end;