summaryrefslogtreecommitdiff
path: root/include/ruby/internal/core/rfile.h
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2023-06-01 08:43:22 +0900
committerNARUSE, Yui <naruse@airemix.jp>2023-06-01 08:43:22 +0900
commit85dcc4866d9ff29834596e9186cc97d622ee06f8 (patch)
treed5daa60146c5c8c2de9a9459a05e6e771d934362 /include/ruby/internal/core/rfile.h
parente4163112f6b99d9c205f6bc260878dcb00954a13 (diff)
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.
Diffstat (limited to 'include/ruby/internal/core/rfile.h')
-rw-r--r--include/ruby/internal/core/rfile.h9
1 files changed, 4 insertions, 5 deletions
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;
};
/**