ruby-changes:5510
From: shyouhei <ko1@a...>
Date: Sun, 8 Jun 2008 06:08:34 +0900 (JST)
Subject: [ruby-changes:5510] Ruby:r17012 (ruby_1_8_5): merge revision(s) 15005:
shyouhei 2008-06-08 06:08:07 +0900 (Sun, 08 Jun 2008) New Revision: 17012 Modified files: branches/ruby_1_8_5/ChangeLog branches/ruby_1_8_5/eval.c branches/ruby_1_8_5/version.h Log: merge revision(s) 15005: * eval.c (rb_define_alloc_func, rb_undef_alloc_func): should define/undef on a signleton class. [ruby-core:09959] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_5/version.h?r1=17012&r2=17011&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_5/ChangeLog?r1=17012&r2=17011&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_5/eval.c?r1=17012&r2=17011&diff_format=u Index: ruby_1_8_5/ChangeLog =================================================================== --- ruby_1_8_5/ChangeLog (revision 17011) +++ ruby_1_8_5/ChangeLog (revision 17012) @@ -1,3 +1,8 @@ +Sun Jun 8 06:07:02 2008 Nobuyoshi Nakada <nobu@r...> + + * eval.c (rb_define_alloc_func, rb_undef_alloc_func): should + define/undef on a signleton class. [ruby-core:09959] + Sun Jun 8 06:03:45 2008 Nobuyoshi Nakada <nobu@r...> * time.c (time_arg): use converted object. [ruby-core:14759] Index: ruby_1_8_5/version.h =================================================================== --- ruby_1_8_5/version.h (revision 17011) +++ ruby_1_8_5/version.h (revision 17012) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-06-08" #define RUBY_VERSION_CODE 185 #define RUBY_RELEASE_CODE 20080608 -#define RUBY_PATCHLEVEL 164 +#define RUBY_PATCHLEVEL 165 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 Index: ruby_1_8_5/eval.c =================================================================== --- ruby_1_8_5/eval.c (revision 17011) +++ ruby_1_8_5/eval.c (revision 17012) @@ -458,7 +458,8 @@ VALUE (*func) _((VALUE)); { Check_Type(klass, T_CLASS); - rb_add_method(CLASS_OF(klass), ID_ALLOCATOR, NEW_CFUNC(func, 0), NOEX_PRIVATE); + rb_add_method(rb_singleton_class(klass), ID_ALLOCATOR, NEW_CFUNC(func, 0), + NOEX_PRIVATE); } void @@ -466,7 +467,7 @@ VALUE klass; { Check_Type(klass, T_CLASS); - rb_add_method(CLASS_OF(klass), ID_ALLOCATOR, 0, NOEX_UNDEF); + rb_add_method(rb_singleton_class(klass), ID_ALLOCATOR, 0, NOEX_UNDEF); } static NODE* -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/