diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-10 01:33:05 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-10 01:33:05 +0000 |
commit | 322ce91a97497d48224ea3f5578fce514103b481 (patch) | |
tree | 68fd91411618ad1b353e3f10863c59f872d72703 /include | |
parent | af15922b03275d1ca7ca8d6ed0985de5fc2156bd (diff) |
* include/ruby/intern.h (rb_path_next, rb_path_skip_prefix,
rb_path_last_separator, rb_path_end, ruby_find_basename,
ruby_find_extname): restore the declarations of these functions for
backword compatibility.
* filc.c (rb_path_next, rb_path_skip_prefix, rb_path_last_separator,
rb_path_end, ruby_find_basename, ruby_find_extname): implements
these functions as the wrapper of rb_enc_*().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@41878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/intern.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 43de3ba878..032f9af097 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -413,9 +413,15 @@ 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); +DEPRECATED(char *rb_path_next(const char *)); +DEPRECATED(char *rb_path_skip_prefix(const char *)); +DEPRECATED(char *rb_path_last_separator(const char *)); +DEPRECATED(char *rb_path_end(const char *)); VALUE rb_file_directory_p(VALUE,VALUE); VALUE rb_str_encode_ospath(VALUE); int rb_is_absolute_path(const char *); +DEPRECATED(const char *ruby_find_basename(const char *name, long *baselen, long *alllen)); +DEPRECATED(const char *ruby_find_extname(const char *name, long *len)); /* gc.c */ void ruby_set_stack_size(size_t); NORETURN(void rb_memerror(void)); |