From 0d3d9eff4d59d36f1545c4fe9f00916bcfd417ac Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 15 Mar 2013 05:51:37 +0000 Subject: file.c: rb_sys_fail_path_with_func * file.c (rb_sys_fail_path_with_func): share same function, and path may be nil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 837c1b6ded..f3dd3e3814 100644 --- a/io.c +++ b/io.c @@ -399,21 +399,6 @@ rb_cloexec_fcntl_dupfd(int fd, int minfd) # endif #endif -#ifdef RUBY_FUNCTION_NAME_STRING -# define rb_sys_fail_path(path) rb_sys_fail_path0(RUBY_FUNCTION_NAME_STRING, path) -NORETURN(static void rb_sys_fail_path0(const char *,VALUE)); -static void -rb_sys_fail_path0(const char *func_name, VALUE path) -{ - VALUE mesg = rb_str_new_cstr(func_name); - rb_str_buf_cat2(mesg, ": "); - rb_str_buf_append(mesg, path); - rb_sys_fail_str(mesg); -} -#else -# define rb_sys_fail_path(path) rb_sys_fail_str(path) -#endif - static int io_fflush(rb_io_t *); static rb_io_t *flush_before_seek(rb_io_t *fptr); -- cgit v1.2.3