aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-08-27 14:21:18 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-08-27 15:52:26 +0900
commit1663d347c993debf7ed83e11e291e7a21e14ed03 (patch)
tree25627412bc1c323f02da67379311efb73b51a249 /io.c
parent19b6678132acc56460432d8c2d6246f399b27160 (diff)
downloadruby-1663d347c993debf7ed83e11e291e7a21e14ed03.tar.gz
delete `$` sign from C identifiers
They lack portability. See also https://travis-ci.org/shyouhei/ruby/jobs/577164015
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/io.c b/io.c
index 2f9df89d6a..e0b81fcc3a 100644
--- a/io.c
+++ b/io.c
@@ -12987,13 +12987,13 @@ rb_readwrite_syserr_fail(enum rb_io_wait_readwrite writable, int n, const char *
}
static VALUE
-get_$LAST_READ_LINE(ID _x, VALUE *_y)
+get_LAST_READ_LINE(ID _x, VALUE *_y)
{
return rb_lastline_get();
}
static void
-set_$LAST_READ_LINE(VALUE val, ID _x, VALUE *_y)
+set_LAST_READ_LINE(VALUE val, ID _x, VALUE *_y)
{
rb_lastline_set(val);
}
@@ -13271,7 +13271,7 @@ Init_IO(void)
rb_define_hooked_variable("$-0", &rb_rs, 0, rb_str_setter);
rb_define_hooked_variable("$\\", &rb_output_rs, 0, rb_str_setter);
- rb_define_virtual_variable("$_", get_$LAST_READ_LINE, set_$LAST_READ_LINE);
+ rb_define_virtual_variable("$_", get_LAST_READ_LINE, set_LAST_READ_LINE);
rb_define_method(rb_cIO, "initialize_copy", rb_io_init_copy, 1);
rb_define_method(rb_cIO, "reopen", rb_io_reopen, -1);