From 533d878e52aef255d5977ccb69fcabb328ae75c7 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 23 Jun 2009 07:05:04 +0000 Subject: * file.c (rb_find_file_ext, rb_find_file): no needs to expand paths with tilde twice. * load.c (rb_f_load): load the given path directly if not found in load_path. * load.c (search_required): search file in specified safe level. * load.c (rb_require_safe): path to load is already searched in search_required(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/ruby') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index d35279aa2..ed9e746bf 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -345,6 +345,9 @@ VALUE rb_file_expand_path(VALUE, VALUE); VALUE rb_file_s_absolute_path(int, VALUE *); VALUE rb_file_absolute_path(VALUE, VALUE); void rb_file_const(const char*, VALUE); +int rb_file_load_ok(const char *); +int rb_find_file_ext_safe(VALUE*, const char* const*, int); +VALUE rb_find_file_safe(VALUE, int); int rb_find_file_ext(VALUE*, const char* const*); VALUE rb_find_file(VALUE); char *rb_path_next(const char *); -- cgit