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 | ff1b8b75930160a12e03216defa77efcc46b0fec (patch) | |
tree | d46f55d282488407e782c99bd212556e9b1152fc /include | |
parent | 12811c59325c57c69ec770d2357fdcfff9763164 (diff) | |
download | ruby-ff1b8b75930160a12e03216defa77efcc46b0fec.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-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 d35279aa24..ed9e746bf0 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 *); |