summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/file.c b/file.c
index 58eebe52d5..2c14d8fe1b 100644
--- a/file.c
+++ b/file.c
@@ -2284,22 +2284,15 @@ file_load_ok(file)
extern VALUE rb_load_path;
int
-rb_find_file_noext(filep)
+rb_find_file_ext(filep, ext)
VALUE *filep;
+ char **ext;
{
char *path, *e, *found;
char *f = RSTRING(*filep)->ptr;
VALUE fname;
int i, j;
- static char *ext[] = {
- ".rb", DLEXT,
-#ifdef DLEXT2
- DLEXT2,
-#endif
- 0
- };
-
if (f[0] == '~') {
fname = *filep;
fname = rb_file_s_expand_path(1, &fname);