diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-08-20 13:48:29 +1200 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2020-09-14 16:44:09 +1200 |
commit | 6747cb575414cf781c79c263f68d7b70778efa24 (patch) | |
tree | 99b2400076d8bb8478833f9f41fa2617fcc1384f /include | |
parent | 703e529751deb086a46a9c029ce38d4fff14e84c (diff) |
Add RB_ prefix to `GetOpenFile` and `MakeOpenFile`.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3434
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/io.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h index 5527b02b2e..359282a31e 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -113,11 +113,13 @@ typedef struct rb_io_enc_t rb_io_enc_t; /* #define FMODE_INET 0x00400000 */ /* #define FMODE_INET6 0x00800000 */ -#define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr) +#define RB_IO_POINTER(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr) +#define GetOpenFile RB_IO_POINTER -#define MakeOpenFile(obj, fp) do {\ +#define RB_IO_OPEN(obj, fp) do {\ (fp) = rb_io_make_open_file(obj);\ } while (0) +#define MakeOpenFile RB_IO_OPEN rb_io_t *rb_io_make_open_file(VALUE obj); |