* load.c (rb_feature_provided): suppressed warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f165ddb21f
commit
ec490ab2c4
4
load.c
4
load.c
@ -225,11 +225,11 @@ rb_feature_provided(const char *feature, const char **loading)
|
|||||||
}
|
}
|
||||||
if (ext && !strchr(ext, '/')) {
|
if (ext && !strchr(ext, '/')) {
|
||||||
if (IS_RBEXT(ext)) {
|
if (IS_RBEXT(ext)) {
|
||||||
if (rb_feature_p(feature, ext, Qtrue, Qfalse, loading)) return TRUE;
|
if (rb_feature_p(feature, ext, TRUE, FALSE, loading)) return TRUE;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
else if (IS_SOEXT(ext) || IS_DLEXT(ext)) {
|
else if (IS_SOEXT(ext) || IS_DLEXT(ext)) {
|
||||||
if (rb_feature_p(feature, ext, Qfalse, Qfalse, loading)) return TRUE;
|
if (rb_feature_p(feature, ext, FALSE, FALSE, loading)) return TRUE;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user