From c7c3a275f33ca1f2485a0a496fac8b076f38beed Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 15 Mar 2013 11:19:56 +0000 Subject: error.c: rb_sys_fail_path_in * error.c (syserr_initialize): add optional function name. * error.c (rb_sys_fail_path_in): rename and move from file.c, and pass func_name to SystemCallError#initialize. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 56c096a009..b099f24352 100644 --- a/internal.h +++ b/internal.h @@ -126,11 +126,11 @@ void Init_File(void); # if defined __GNUC__ && __GNUC__ >= 4 # pragma GCC visibility push(default) # endif -NORETURN(void rb_sys_fail_path_with_func(const char *func_name, VALUE path)); +NORETURN(void rb_sys_fail_path_in(const char *func_name, VALUE path)); # if defined __GNUC__ && __GNUC__ >= 4 # pragma GCC visibility pop # endif -# define rb_sys_fail_path(path) rb_sys_fail_path_with_func(RUBY_FUNCTION_NAME_STRING, path) +# define rb_sys_fail_path(path) rb_sys_fail_path_in(RUBY_FUNCTION_NAME_STRING, path) #else # define rb_sys_fail_path(path) rb_sys_fail_str(path) #endif -- cgit v1.2.3