mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
delete $
sign from C identifiers
They lack portability. See also
577164015
This commit is contained in:
parent
19b6678132
commit
1663d347c9
4 changed files with 12 additions and 12 deletions
6
io.c
6
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue