diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-04 07:53:32 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-04 07:53:32 +0000 |
commit | 150a8b4fe0c7ed520a1c73117291b1bbc6af54bb (patch) | |
tree | d232bf2b9a2bbcb244dfac649a8f690d8184520b | |
parent | 1c9a2e11545f91848fc5733005b0a4f6249290ff (diff) | |
download | ruby-150a8b4fe0c7ed520a1c73117291b1bbc6af54bb.tar.gz |
* io.c (Init_IO): remove obsolete variables: $defout, $deferr.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 18 |
2 files changed, 3 insertions, 19 deletions
@@ -1,8 +1,10 @@ -Thu Oct 4 16:31:17 2007 Yukihiro Matsumoto <matz@ruby-lang.org> +Thu Oct 4 16:52:20 2007 Yukihiro Matsumoto <matz@ruby-lang.org> * re.c (kcode_setter): Perl-ish global variable `$=' no longer effective. + * io.c (Init_IO): remove obsolete variables: $defout, $deferr. + Thu Oct 4 16:28:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * encoding.c (rb_obj_encoding): returns encoding of the given object. @@ -4151,20 +4151,6 @@ stdout_setter(VALUE val, ID id, VALUE *variable) *variable = val; } -static void -defout_setter(VALUE val, ID id, VALUE *variable) -{ - stdout_setter(val, id, variable); - rb_warn("$defout is obsolete; use $stdout instead"); -} - -static void -deferr_setter(VALUE val, ID id, VALUE *variable) -{ - stdout_setter(val, id, variable); - rb_warn("$deferr is obsolete; use $stderr instead"); -} - static VALUE prep_io(int fd, int mode, VALUE klass, const char *path) { @@ -5937,10 +5923,6 @@ Init_IO(void) orig_stdout = rb_stdout; rb_deferr = orig_stderr = rb_stderr; - /* variables to be removed in 1.8.1 */ - rb_define_hooked_variable("$defout", &rb_stdout, 0, defout_setter); - rb_define_hooked_variable("$deferr", &rb_stderr, 0, deferr_setter); - /* constants to hold original stdin/stdout/stderr */ rb_define_global_const("STDIN", rb_stdin); rb_define_global_const("STDOUT", rb_stdout); |