summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <matz@ruby-lang.org>1996-12-25 00:33:19 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2019-08-17 22:09:32 +0900
commitce930d042913722f209bbd3209b6c90a3c71325f (patch)
tree7233482f90335a8247ef426607622a8cad067a97 /io.c
parent554b989ba1623b9f6a0b76f00824c83a23fbcbc1 (diff)
version 1.0-961225v1_0_961225
https://cache.ruby-lang.org/pub/ruby/1.0/ruby-1.0-961225.tar.gz Wed Dec 25 00:33:19 1996 Yukihiro Matsumoto <matz@caelum.co.jp> * version 1.0-961225 * io.c (Init_IO): newを無効化 * lib/tkthcore.rb: tk_call "global $foo; set foo 5"などもできるように * eval.c (thread_restore_context): $~, $_でスタックを壊していた * process.c (rb_waitpid): threadに一応対応
Diffstat (limited to 'io.c')
-rw-r--r--io.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/io.c b/io.c
index 43e2458668..7c0fbd8d2b 100644
--- a/io.c
+++ b/io.c
@@ -3,7 +3,7 @@
io.c -
$Author: matz $
- $Date: 1995/01/10 10:42:39 $
+ $Date: 1996/12/25 10:42:39 $
created at: Fri Oct 15 18:08:59 JST 1993
Copyright (C) 1993-1996 Yukihiro Matsumoto
@@ -116,6 +116,11 @@ closed()
Raise(eIOError, "closed stream");
}
+void
+io_wrong_type()
+{
+}
+
/* writing functions */
VALUE
io_write(io, str)
@@ -1738,6 +1743,8 @@ Init_IO()
cIO = rb_define_class("IO", cObject);
rb_include_module(cIO, mEnumerable);
+ rb_undef_method(CLASS_OF(cIO), "new");
+
rb_define_singleton_method(cIO, "popen", io_popen, -1);
rb_define_singleton_method(cIO, "foreach", io_foreach, 1);
rb_define_singleton_method(cIO, "select", f_select, -1);