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

* parse.y (rb_id2str, ripper_initialize, Init_ripper): use rb_usascii_str_new2.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2008-01-28 14:51:23 +00:00
parent 1e8e70a311
commit 4d961eb8a6
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Mon Jan 28 23:47:52 2008 NARUSE, Yui <naruse@ruby-lang.org>
* parse.y (rb_id2str, ripper_initialize, Init_ripper):
use rb_usascii_str_new2.
Mon Jan 28 19:37:08 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/win32ole/win32ole.c (ole_cp2encoding): new function.

View file

@ -9076,7 +9076,7 @@ rb_id2str(ID id)
if (op_tbl[i].token == id) {
VALUE str = global_symbols.op_sym[i];
if (!str) {
str = rb_str_new2(op_tbl[i].name);
str = rb_usascii_str_new2(op_tbl[i].name);
OBJ_FREEZE(str);
global_symbols.op_sym[i] = str;
}
@ -9728,7 +9728,7 @@ ripper_initialize(int argc, VALUE *argv, VALUE self)
}
else {
StringValue(fname);
fname2 = rb_str_new2(" ");
fname2 = rb_usascii_str_new2(" ");
rb_str_append(fname2, fname);
}
parser_initialize(parser);
@ -9864,7 +9864,7 @@ Init_ripper(void)
VALUE Ripper;
Ripper = rb_define_class("Ripper", rb_cObject);
rb_define_const(Ripper, "Version", rb_str_new2(RIPPER_VERSION));
rb_define_const(Ripper, "Version", rb_usascii_str_new2(RIPPER_VERSION));
rb_define_alloc_func(Ripper, ripper_s_allocate);
rb_define_method(Ripper, "initialize", ripper_initialize, -1);
rb_define_method(Ripper, "parse", ripper_parse, 0);