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

ruby-changes:62919

From: Samuel <ko1@a...>
Date: Mon, 14 Sep 2020 13:44:29 +0900 (JST)
Subject: [ruby-changes:62919] 6747cb5754 (master): Add RB_ prefix to `GetOpenFile` and `MakeOpenFile`.

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

From 6747cb575414cf781c79c263f68d7b70778efa24 Mon Sep 17 00:00:00 2001
From: Samuel Williams <samuel.williams@o...>
Date: Thu, 20 Aug 2020 13:48:29 +1200
Subject: Add RB_ prefix to `GetOpenFile` and `MakeOpenFile`.


diff --git a/include/ruby/io.h b/include/ruby/io.h
index 5527b02..359282a 100644
--- a/include/ruby/io.h
+++ b/include/ruby/io.h
@@ -113,11 +113,13 @@ typedef struct rb_io_enc_t rb_io_enc_t; https://github.com/ruby/ruby/blob/trunk/include/ruby/io.h#L113
 /* #define FMODE_INET                  0x00400000 */
 /* #define FMODE_INET6                 0x00800000 */
 
-#define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
+#define RB_IO_POINTER(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
+#define GetOpenFile RB_IO_POINTER
 
-#define MakeOpenFile(obj, fp) do {\
+#define RB_IO_OPEN(obj, fp) do {\
     (fp) = rb_io_make_open_file(obj);\
 } while (0)
+#define MakeOpenFile RB_IO_OPEN
 
 rb_io_t *rb_io_make_open_file(VALUE obj);
 
-- 
cgit v0.10.2


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

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