ruby-changes:11549
From: yugui <ko1@a...>
Date: Sun, 12 Apr 2009 23:03:35 +0900 (JST)
Subject: [ruby-changes:11549] Ruby:r23181 (ruby_1_9_1): merges r22891 from trunk into ruby_1_9_1.
yugui 2009-04-12 23:03:03 +0900 (Sun, 12 Apr 2009) New Revision: 23181 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23181 Log: merges r22891 from trunk into ruby_1_9_1. -- * ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbol name. [ruby-dev:38150] Modified files: branches/ruby_1_9_1/ChangeLog branches/ruby_1_9_1/ext/dl/handle.c Index: ruby_1_9_1/ChangeLog =================================================================== --- ruby_1_9_1/ChangeLog (revision 23180) +++ ruby_1_9_1/ChangeLog (revision 23181) @@ -1,3 +1,8 @@ +Wed Mar 11 20:13:38 2009 Nobuyoshi Nakada <nobu@r...> + + * ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbol + name. [ruby-dev:38150] + Wed Mar 11 13:03:12 2009 Nobuyoshi Nakada <nobu@r...> * ext/dl/handle.c (rb_dlhandle_sym): fixed heap corruption. Index: ruby_1_9_1/ext/dl/handle.c =================================================================== --- ruby_1_9_1/ext/dl/handle.c (revision 23180) +++ ruby_1_9_1/ext/dl/handle.c (revision 23181) @@ -140,18 +140,8 @@ rb_secure(2); - if( sym == Qnil ){ -#if defined(RTLD_NEXT) - name = RTLD_NEXT; -#else - name = NULL; -#endif - } - else{ - name = StringValuePtr(sym); - } + name = StringValuePtr(sym); - Data_Get_Struct(self, struct dl_handle, dlhandle); if( ! dlhandle->open ){ rb_raise(rb_eDLError, "closed handle"); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/