1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
shyouhei 2008-10-24 10:30:09 +00:00
parent 5ff7af42b0
commit 78d2b00893
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Fri Oct 24 19:29:22 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
* string.c (rb_str_dump): do not use C++ comment.
Fri Oct 24 19:16:36 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
* id.h (enum ruby_method_ids): ISO C forbids comma at end of

View file

@ -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);