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

* ext/dl/handle.c (rb_dlhandle_sym): moved conditinally used variable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-03-11 04:06:57 +00:00
parent 7e59a8c5e4
commit f5315680aa

View file

@ -136,7 +136,6 @@ rb_dlhandle_sym(VALUE self, VALUE sym)
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 @@ rb_dlhandle_sym(VALUE self, VALUE sym)
CHECK_DLERROR;
#if defined(FUNC_STDCALL)
if( !func ){
int i;
int len = strlen(name);
char *name_n;
#if defined(__CYGWIN__) || defined(_WIN32) || defined(__MINGW32__)