diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-23 07:05:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-23 07:05:04 +0000 |
commit | 533d878e52aef255d5977ccb69fcabb328ae75c7 (patch) | |
tree | d46f55d282488407e782c99bd212556e9b1152fc /include/ruby | |
parent | 2a6c9616c5364986d6dd9002d2f1ba2dfe2a98e6 (diff) | |
download | ruby-533d878e52aef255d5977ccb69fcabb328ae75c7.tar.gz ruby-533d878e52aef255d5977ccb69fcabb328ae75c7.tar.xz ruby-533d878e52aef255d5977ccb69fcabb328ae75c7.zip |
* 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
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/intern.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 *); |