diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-27 06:26:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-08-27 06:26:41 +0000 |
commit | 909477ec1de6f7f89d29405eb3ad268ecbd3ebf7 (patch) | |
tree | f9afcfb5fea290a88b556158fcbc8aa3001dff8e /io.c | |
parent | 9614d22b5d6dcb4e0ee6fe12bad0c1021230cacf (diff) | |
download | ruby-909477ec1de6f7f89d29405eb3ad268ecbd3ebf7.tar.gz |
* file.c (null_device): move from io.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -9639,18 +9639,6 @@ rb_get_argv(void) return ARGF.argv; } -static const char null_device[] = -#if defined DOSISH - "NUL" -#elif defined AMIGA || defined __amigaos__ - "NIL" -#elif defined __VMS - "NL:" -#else - "/dev/null" -#endif - ; - /* * Document-class: IOError * @@ -9984,8 +9972,6 @@ Init_IO(void) rb_define_method(rb_cIO, "autoclose?", rb_io_autoclose_p, 0); rb_define_method(rb_cIO, "autoclose=", rb_io_set_autoclose, 1); - rb_define_const(rb_cIO, "NULL", rb_obj_freeze(rb_usascii_str_new2(null_device))); - rb_define_variable("$stdin", &rb_stdin); rb_stdin = prep_stdio(stdin, FMODE_READABLE, rb_cIO, "<STDIN>"); rb_define_hooked_variable("$stdout", &rb_stdout, 0, stdout_setter); |