Ruby  3.4.0dev (2024-11-22 revision 37a72b0150ec36b4ea27175039afc28c62207b0c)
rfile.h
Go to the documentation of this file.
1 #ifndef RBIMPL_RFILE_H /*-*-C++-*-vi:se ft=cpp:*/
2 #define RBIMPL_RFILE_H
24 #include "ruby/internal/cast.h"
25 
26 /* rb_io_t is in ruby/io.h. The header file has historically not been included
27  * into ruby/ruby.h. We follow that tradition. */
28 struct rb_io;
29 
35 struct RFile {
36 
38  struct RBasic basic;
39 
41  struct rb_io *fptr;
42 };
43 
50 #define RFILE(obj) RBIMPL_CAST((struct RFile *)(obj))
51 #endif /* RBIMPL_RFILE_H */
Defines struct RBasic.
Ruby object's base components.
Definition: rbasic.h:63
Ruby's File and IO.
Definition: rfile.h:35
struct RBasic basic
Basic part, including flags and class.
Definition: rfile.h:38
struct rb_io * fptr
IO's specific fields.
Definition: rfile.h:41
Ruby's IO, metadata and buffers.
Definition: io.h:143