summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-19 14:02:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-19 14:02:48 +0000
commit181d13dc282a7ed90d569811195134de248d480d (patch)
tree5708a398a70c59aae98493dfcb5e3f6573fb83df /eval.c
parent41d5646a32fb28fc23394146c0ff882770d595a4 (diff)
downloadruby-181d13dc282a7ed90d569811195134de248d480d.tar.gz
ruby-181d13dc282a7ed90d569811195134de248d480d.tar.xz
ruby-181d13dc282a7ed90d569811195134de248d480d.zip
* eval.c (search_required): deal with features with path too.
* intern.h (rb_file_expand_path): prototype. fixed: [ruby-dev:26082] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 73f04ce86..5807aa53b 100644
--- a/eval.c
+++ b/eval.c
@@ -6916,8 +6916,8 @@ search_required(fname, path)
}
}
}
- else if (!strchr(ftptr, '/')) {
- if (rb_feature_p(ftptr, 0, Qfalse)) return 's';
+ else if (ext = rb_feature_p(ftptr, 0, Qfalse)) {
+ return (*ext && (IS_SOEXT(ext) || IS_DLEXT(ext))) ? 's' : 'r';
}
tmp = fname;
type = rb_find_file_ext(&tmp, loadable_ext);