diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-07 16:42:07 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-11-07 16:42:07 +0000 |
commit | 8e3721dfa828464981b5e9f77eff79b815c288d5 (patch) | |
tree | 9613983a0a668ab13d6147973af2807bf0428273 /ext/dl/handle.c | |
parent | 56cddaf082cc33d38b646f3145c9ce2dd806f1df (diff) | |
download | ruby-8e3721dfa828464981b5e9f77eff79b815c288d5.tar.gz |
Get rid of ineffective symbols, lines, constants and so on.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/handle.c')
-rw-r--r-- | ext/dl/handle.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/dl/handle.c b/ext/dl/handle.c index 4b0a129793..ea3b98b3c6 100644 --- a/ext/dl/handle.c +++ b/ext/dl/handle.c @@ -12,7 +12,7 @@ dlhandle_free(struct dl_handle *dlhandle) { if( dlhandle->ptr && dlhandle->open && dlhandle->enable_close ){ dlclose(dlhandle->ptr); - }; + } } VALUE @@ -61,18 +61,18 @@ rb_dlhandle_initialize(int argc, VALUE argv[], VALUE self) break; default: rb_bug("rb_dlhandle_new"); - }; + } ptr = dlopen(clib, cflag); #if defined(HAVE_DLERROR) if( (err = dlerror()) ){ rb_raise(rb_eRuntimeError, err); - }; + } #else if( !ptr ){ err = dlerror(); rb_raise(rb_eRuntimeError, err); - }; + } #endif Data_Get_Struct(self, struct dl_handle, dlhandle); if( dlhandle->ptr && dlhandle->open && dlhandle->enable_close ){ @@ -84,7 +84,7 @@ rb_dlhandle_initialize(int argc, VALUE argv[], VALUE self) if( rb_block_given_p() ){ rb_ensure(rb_yield, self, rb_dlhandle_close, self); - }; + } return Qnil; } @@ -146,7 +146,7 @@ rb_dlhandle_sym(int argc, VALUE argv[], VALUE self) } else{ stype = NULL; - }; + } if( sym == Qnil ){ #if defined(RTLD_NEXT) @@ -157,7 +157,7 @@ rb_dlhandle_sym(int argc, VALUE argv[], VALUE self) } else{ name = StringValuePtr(sym); - }; + } Data_Get_Struct(self, struct dl_handle, dlhandle); @@ -189,12 +189,12 @@ rb_dlhandle_sym(int argc, VALUE argv[], VALUE self) #endif { rb_raise(rb_eRuntimeError, "Unknown symbol \"%sA\".", name); - }; + } } #else rb_raise(rb_eRuntimeError, "Unknown symbol \"%s\".", name); #endif - }; + } val = rb_dlsym_new(func, name, stype); return val; |