diff options
author | Yukihiro Matsumoto <[email protected]> | 1996-12-25 00:33:19 +0900 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2019-08-17 22:09:32 +0900 |
commit | ce930d042913722f209bbd3209b6c90a3c71325f (patch) | |
tree | 7233482f90335a8247ef426607622a8cad067a97 /io.c | |
parent | 554b989ba1623b9f6a0b76f00824c83a23fbcbc1 (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 <[email protected]>
* 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.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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); |