diff options
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -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); |