|
Ruby
2.7.2p137(2020-10-01revision5445e0435260b449decf2ac16f9d09bae3cafe72)
|
Go to the source code of this file.
Data Structures | |
| struct | StringIO |
| struct | getline_arg |
Macros | |
| #define | STRINGIO_VERSION "0.1.0" |
| #define | rb_io_extract_modeenc strio_extract_modeenc |
| #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 171 of file stringio.c.
| #define CLOSED | ( | strio | ) | (!STRIO_MODE_SET_P(strio, READWRITE)) |
Definition at line 213 of file stringio.c.
| #define error_inval | ( | msg | ) | (rb_syserr_fail(EINVAL, msg)) |
Definition at line 123 of file stringio.c.
| #define get_enc | ( | ptr | ) | ((ptr)->enc ? (ptr)->enc : rb_enc_get((ptr)->string)) |
Definition at line 124 of file stringio.c.
| #define IS_STRIO | ( | obj | ) | (rb_typeddata_is_kind_of((obj), &strio_data_type)) |
Definition at line 122 of file stringio.c.
| #define rb_io_extract_modeenc strio_extract_modeenc |
Definition at line 35 of file stringio.c.
| #define READABLE | ( | strio | ) | STRIO_MODE_SET_P(strio, READABLE) |
Definition at line 214 of file stringio.c.
Definition at line 204 of file stringio.c.
| #define STRINGIO_VERSION "0.1.0" |
Definition at line 14 of file stringio.c.
| #define strio_addstr rb_io_addstr |
Definition at line 1470 of file stringio.c.
| #define strio_fcntl strio_unimpl |
Definition at line 687 of file stringio.c.
| #define strio_fileno strio_nil |
Definition at line 1657 of file stringio.c.
| #define strio_flush strio_self |
Definition at line 689 of file stringio.c.
| #define strio_fsync strio_0 |
Definition at line 691 of file stringio.c.
| #define strio_isatty strio_false |
Definition at line 1653 of file stringio.c.
| #define STRIO_MODE_SET_P | ( | strio, | |
| mode | |||
| ) |
Definition at line 210 of file stringio.c.
| #define strio_pid strio_nil |
Definition at line 1655 of file stringio.c.
| #define strio_print rb_io_print |
Definition at line 1479 of file stringio.c.
| #define strio_printf rb_io_printf |
Definition at line 1487 of file stringio.c.
| #define strio_puts rb_io_puts |
Definition at line 1519 of file stringio.c.
| #define STRIO_READABLE FL_USER4 |
Definition at line 206 of file stringio.c.
| #define STRIO_READWRITE (STRIO_READABLE|STRIO_WRITABLE) |
Definition at line 208 of file stringio.c.
| #define strio_set_sync strio_first |
Definition at line 810 of file stringio.c.
| #define strio_syswrite rb_io_write |
Definition at line 1642 of file stringio.c.
| #define strio_tell strio_get_pos |
Definition at line 812 of file stringio.c.
| #define STRIO_WRITABLE FL_USER5 |
Definition at line 207 of file stringio.c.
| #define WRITABLE | ( | strio | ) | STRIO_MODE_SET_P(strio, WRITABLE) |
Definition at line 215 of file stringio.c.
| typedef char strio_flags_check[(STRIO_READABLE/FMODE_READABLE==STRIO_WRITABLE/FMODE_WRITABLE) *2 - 1] |
Definition at line 209 of file stringio.c.
Definition at line 1792 of file stringio.c.
References rb_cData, rb_define_alloc_func(), rb_define_class(), rb_define_const(), rb_include_module(), rb_mEnumerable, rb_str_new_cstr, and STRINGIO_VERSION.