From 12b5b81a975e2190aebe762b10ceadccd439a45a Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 15 Dec 2003 04:07:03 +0000 Subject: * dir.c (check_dirname): check string safety and remove extraneous trailing directory separators. [ruby-dev:22279] * file.c: extern rb_path_next, rb_path_skip_prefix, rb_path_last_separator, rb_path_end. * intern.h: prototypes for rb_path_next, rb_path_skip_prefix, rb_path_last_separator, rb_path_end. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- intern.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'intern.h') diff --git a/intern.h b/intern.h index 3aa96e5816..6cdba0840e 100644 --- a/intern.h +++ b/intern.h @@ -222,6 +222,10 @@ VALUE rb_file_s_expand_path _((int, VALUE *)); void rb_file_const _((const char*, VALUE)); int rb_find_file_ext _((VALUE*, const char* const*)); VALUE rb_find_file _((VALUE)); +char *rb_path_next _((const char *)); +char *rb_path_skip_prefix _((const char *)); +char *rb_path_last_separator _((const char *)); +char *rb_path_end _((const char *)); /* gc.c */ NORETURN(void rb_memerror __((void))); int ruby_stack_check _((void)); -- cgit v1.2.3