From 78d2b008931ecfc68d5bdb26803460f2267c58c7 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Fri, 24 Oct 2008 10:30:09 +0000 Subject: [PATCH] * string.c (rb_str_dump): do not use C++ comment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ string.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0c6b57f9f6..06c0e089c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Oct 24 19:29:22 2008 URABE Shyouhei + + * string.c (rb_str_dump): do not use C++ comment. + Fri Oct 24 19:16:36 2008 URABE Shyouhei * id.h (enum ruby_method_ids): ISO C forbids comma at end of diff --git a/string.c b/string.c index a960970a07..fa2781939b 100644 --- a/string.c +++ b/string.c @@ -4212,7 +4212,7 @@ rb_str_dump(VALUE str) sprintf(q, ".force_encoding(\"%s\")", enc->name); enc = rb_ascii8bit_encoding(); } -// STR_SET_LEN(result, strlen(RSTRING_PTR(result))); + /* STR_SET_LEN(result, strlen(RSTRING_PTR(result))); */ OBJ_INFECT(result, str); /* result from dump is ASCII */ rb_enc_associate(result, enc);