[前][次][番号順一覧][スレッド一覧]

ruby-changes:61166

From: Nobuyoshi <ko1@a...>
Date: Sat, 9 May 2020 17:05:49 +0900 (JST)
Subject: [ruby-changes:61166] be575a6eef (master): [ruby/io-console] Use sys_fail_fptr macro

https://git.ruby-lang.org/ruby.git/commit/?id=be575a6eef

From be575a6eefbaea21550f2c378407dd405cd768bc Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 9 May 2020 16:02:52 +0900
Subject: [ruby/io-console] Use sys_fail_fptr macro

https://github.com/ruby/io-console/commit/2b8ba023c8

diff --git a/ext/io/console/console.c b/ext/io/console/console.c
index 58652d9..64f795d 100644
--- a/ext/io/console/console.c
+++ b/ext/io/console/console.c
@@ -618,7 +618,7 @@ console_echo_p(VALUE io) https://github.com/ruby/ruby/blob/trunk/ext/io/console/console.c#L618
 
     GetOpenFile(io, fptr);
     fd = GetReadFD(fptr);
-    if (!getattr(fd, &t)) rb_sys_fail_str(fptr->pathv);
+    if (!getattr(fd, &t)) sys_fail_fptr(fptr);
     return echo_p(&t) ? Qtrue : Qfalse;
 }
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]