зеркало из https://github.com/github/ruby.git
* variable.c (rb_class2name): call rb_tmp_class_path() directly to avoid extra rb_str_dup() from rb_class_name().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
16b445008d
Коммит
3a90444c55
|
@ -1,3 +1,8 @@
|
|||
Sun Oct 20 04:18:48 2013 Aman Gupta <ruby@tmm1.net>
|
||||
|
||||
* variable.c (rb_class2name): call rb_tmp_class_path() directly to
|
||||
avoid extra rb_str_dup() from rb_class_name().
|
||||
|
||||
Sat Oct 19 19:59:02 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* win32/file.c (code_page): use simple array instead of st_table.
|
||||
|
|
|
@ -385,8 +385,10 @@ rb_class_name(VALUE klass)
|
|||
const char *
|
||||
rb_class2name(VALUE klass)
|
||||
{
|
||||
VALUE name = rb_class_name(klass);
|
||||
return RSTRING_PTR(name);
|
||||
int permanent;
|
||||
VALUE path = rb_tmp_class_path(klass, &permanent, rb_ivar_set);
|
||||
if (NIL_P(path)) return NULL;
|
||||
return RSTRING_PTR(path);
|
||||
}
|
||||
|
||||
const char *
|
||||
|
|
Загрузка…
Ссылка в новой задаче