Skip to content

Commit

Permalink
eban
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
eban committed Sep 25, 2000
1 parent b9228a0 commit b617f52
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -5027,7 +5027,6 @@ rb_feature_p(feature, wait)
{
VALUE *p, *pend;
char *f;
int len;

p = RARRAY(rb_features)->ptr;
pend = p + RARRAY(rb_features)->len;
Expand All @@ -5036,12 +5035,12 @@ rb_feature_p(feature, wait)
if (strcmp(f, feature) == 0) {
goto load_wait;
}
len = strlen(f);
if (strncmp(f, feature, strlen(feature)) == 0) {
if (strcmp(f+len, ".so") == 0) {
char *ext = strrchr(f, '.');
if (strcmp(ext, ".so") == 0) {
return Qtrue;
}
if (strcmp(f+len, ".rb") == 0) {
if (strcmp(ext, ".rb") == 0) {
if (wait) goto load_wait;
return Qtrue;
}
Expand Down

0 comments on commit b617f52

Please sign in to comment.