From 85dcc4866d9ff29834596e9186cc97d622ee06f8 Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Thu, 1 Jun 2023 08:43:22 +0900 Subject: Revert "Hide most of the implementation of `struct rb_io`. (#6511)" This reverts commit 18e55fc1e1ec20e8f3166e3059e76c885fc9f8f2. fix [Bug #19704] https://bugs.ruby-lang.org/issues/19704 This breaks compatibility for extension libraries. Such changes need a discussion. --- include/ruby/internal/core/rfile.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include/ruby/internal/core/rfile.h') diff --git a/include/ruby/internal/core/rfile.h b/include/ruby/internal/core/rfile.h index 8cf2c4db5b..f8dddde9e5 100644 --- a/include/ruby/internal/core/rfile.h +++ b/include/ruby/internal/core/rfile.h @@ -23,10 +23,9 @@ #include "ruby/internal/core/rbasic.h" #include "ruby/internal/cast.h" -/* rb_io is in ruby/io.h and internal/io.h. The header file has historically - * not been included into ruby/ruby.h. We follow that tradition. - */ -struct rb_io; +/* rb_io_t is in ruby/io.h. The header file has historically not been included + * into ruby/ruby.h. We follow that tradition. */ +struct rb_io_t; /** * Ruby's File and IO. Ruby's IO are not just file descriptors. They have @@ -39,7 +38,7 @@ struct RFile { struct RBasic basic; /** IO's specific fields. */ - struct rb_io *fptr; + struct rb_io_t *fptr; }; /** -- cgit v1.2.3