Ruby: include/ruby/internal/core/rfile.h Source File

Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)

rfile.h
Go to the documentation of this file.
1#ifndef RBIMPL_RFILE_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_RFILE_H
23#include "ruby/internal/core/rbasic.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. */
28struct rb_io_t;
29
35 struct RFile {
36
38 struct RBasic basic;
39
41 struct rb_io_t *fptr;
42};
43
50#define RFILE(obj) RBIMPL_CAST((struct RFile *)(obj))
51#endif /* RBIMPL_RFILE_H */
rbasic.h
Defines struct RBasic.
RBasic
Ruby's object's, base components.
Definition rbasic.h:64
RFile
Ruby's File and IO.
Definition rfile.h:35
RFile::basic
struct RBasic basic
Basic part, including flags and class.
Definition rfile.h:38
RFile::fptr
struct rb_io_t * fptr
IO's specific fields.
Definition rfile.h:41
rb_io_t
Ruby's IO, metadata and buffers.
Definition io.h:138