diff options
author | Samuel Williams <[email protected]> | 2020-08-21 00:53:08 +1200 |
---|---|---|
committer | Samuel Williams <[email protected]> | 2020-09-14 16:44:09 +1200 |
commit | 701dcbb3ca9bf04b61cc07156608c61aaf9173f0 (patch) | |
tree | 4f732ba3b246c53a075894eb7e7758bb55e57607 /include | |
parent | 132453fa521cf87693035769031f3501ddc02f4a (diff) |
Add support for hooking `IO#read`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3434
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/io.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index fc6240adcc..19b2036a86 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -59,6 +59,8 @@ PACKED_STRUCT_UNALIGNED(struct rb_io_buffer_t { typedef struct rb_io_buffer_t rb_io_buffer_t; typedef struct rb_io_t { + VALUE self; + FILE *stdio_file; /* stdio ptr for read/write if available */ int fd; /* file descriptor */ int mode; /* mode flags: FMODE_XXXs */ |