Ruby
2.5.0dev(2017-10-22revision60238)
|
Go to the source code of this file.
Data Structures | |
struct | StringIO |
struct | getline_arg |
Macros | |
#define | IS_STRIO(obj) (rb_typeddata_is_kind_of((obj), &strio_data_type)) |
#define | error_inval(msg) (rb_syserr_fail(EINVAL, msg)) |
#define | get_enc(ptr) ((ptr)->enc ? (ptr)->enc : rb_enc_get((ptr)->string)) |
#define | check_strio(self) ((struct StringIO*)rb_check_typeddata((self), &strio_data_type)) |
#define | StringIO(obj) get_strio(obj) |
#define | STRIO_READABLE FL_USER4 |
#define | STRIO_WRITABLE FL_USER5 |
#define | STRIO_READWRITE (STRIO_READABLE|STRIO_WRITABLE) |
#define | STRIO_MODE_SET_P(strio, mode) |
#define | CLOSED(strio) (!STRIO_MODE_SET_P(strio, READWRITE)) |
#define | READABLE(strio) STRIO_MODE_SET_P(strio, READABLE) |
#define | WRITABLE(strio) STRIO_MODE_SET_P(strio, WRITABLE) |
#define | strio_fcntl strio_unimpl |
#define | strio_flush strio_self |
#define | strio_fsync strio_0 |
#define | strio_set_sync strio_first |
#define | strio_tell strio_get_pos |
#define | strio_addstr rb_io_addstr |
#define | strio_print rb_io_print |
#define | strio_printf rb_io_printf |
#define | strio_puts rb_io_puts |
#define | strio_syswrite rb_io_write |
#define | strio_isatty strio_false |
#define | strio_pid strio_nil |
#define | strio_fileno strio_nil |
Typedefs | |
typedef char | strio_flags_check[(STRIO_READABLE/FMODE_READABLE==STRIO_WRITABLE/FMODE_WRITABLE) *2 - 1] |
Functions | |
void | Init_stringio (void) |
#define check_strio | ( | self | ) | ((struct StringIO*)rb_check_typeddata((self), &strio_data_type)) |
Definition at line 88 of file stringio.c.
#define CLOSED | ( | strio | ) | (!STRIO_MODE_SET_P(strio, READWRITE)) |
Definition at line 130 of file stringio.c.
#define error_inval | ( | msg | ) | (rb_syserr_fail(EINVAL, msg)) |
Definition at line 40 of file stringio.c.
#define get_enc | ( | ptr | ) | ((ptr)->enc ? (ptr)->enc : rb_enc_get((ptr)->string)) |
Definition at line 41 of file stringio.c.
#define IS_STRIO | ( | obj | ) | (rb_typeddata_is_kind_of((obj), &strio_data_type)) |
Definition at line 39 of file stringio.c.
#define READABLE | ( | strio | ) | STRIO_MODE_SET_P(strio, READABLE) |
Definition at line 131 of file stringio.c.
#define StringIO | ( | obj | ) | get_strio(obj) |
Definition at line 121 of file stringio.c.
#define strio_addstr rb_io_addstr |
Definition at line 1306 of file stringio.c.
#define strio_fcntl strio_unimpl |
Definition at line 532 of file stringio.c.
#define strio_fileno strio_nil |
Definition at line 1493 of file stringio.c.
#define strio_flush strio_self |
Definition at line 534 of file stringio.c.
#define strio_fsync strio_0 |
Definition at line 536 of file stringio.c.
#define strio_isatty strio_false |
Definition at line 1489 of file stringio.c.
#define STRIO_MODE_SET_P | ( | strio, | |
mode | |||
) |
Definition at line 127 of file stringio.c.
#define strio_pid strio_nil |
Definition at line 1491 of file stringio.c.
#define strio_print rb_io_print |
Definition at line 1315 of file stringio.c.
#define strio_printf rb_io_printf |
Definition at line 1323 of file stringio.c.
#define strio_puts rb_io_puts |
Definition at line 1355 of file stringio.c.
#define STRIO_READABLE FL_USER4 |
Definition at line 123 of file stringio.c.
#define STRIO_READWRITE (STRIO_READABLE|STRIO_WRITABLE) |
Definition at line 125 of file stringio.c.
#define strio_set_sync strio_first |
Definition at line 655 of file stringio.c.
#define strio_syswrite rb_io_write |
Definition at line 1478 of file stringio.c.
#define strio_tell strio_get_pos |
Definition at line 657 of file stringio.c.
#define STRIO_WRITABLE FL_USER5 |
Definition at line 124 of file stringio.c.
#define WRITABLE | ( | strio | ) | STRIO_MODE_SET_P(strio, WRITABLE) |
Definition at line 132 of file stringio.c.
typedef char strio_flags_check[(STRIO_READABLE/FMODE_READABLE==STRIO_WRITABLE/FMODE_WRITABLE) *2 - 1] |
Definition at line 126 of file stringio.c.
void Init_stringio | ( | void | ) |
Definition at line 1611 of file stringio.c.
References rb_cData, rb_define_alloc_func(), rb_define_class(), rb_include_module(), and rb_mEnumerable.