ruby-changes:11273
From: nobu <ko1@a...>
Date: Wed, 11 Mar 2009 13:07:03 +0900 (JST)
Subject: [ruby-changes:11273] Ruby:r22884 (trunk): * ext/dl/handle.c (rb_dlhandle_sym): moved conditinally used variable.
nobu 2009-03-11 13:06:57 +0900 (Wed, 11 Mar 2009) New Revision: 22884 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22884 Log: * ext/dl/handle.c (rb_dlhandle_sym): moved conditinally used variable. Modified files: trunk/ext/dl/handle.c Index: ext/dl/handle.c =================================================================== --- ext/dl/handle.c (revision 22883) +++ ext/dl/handle.c (revision 22884) @@ -136,7 +136,6 @@ struct dl_handle *dlhandle; void *handle; const char *name; - int i; #if defined(HAVE_DLERROR) const char *err; # define CHECK_DLERROR if( err = dlerror() ){ func = 0; } @@ -168,6 +167,7 @@ CHECK_DLERROR; #if defined(FUNC_STDCALL) if( !func ){ + int i; int len = strlen(name); char *name_n; #if defined(__CYGWIN__) || defined(_WIN32) || defined(__MINGW32__) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/