summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-01 08:56:45 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-01 08:56:45 +0000
commit53118356b53259b456aabc11fb1212d965251fc4 (patch)
treecfa16b2fa793fb9a4691f21bd028a0170a598cff /io.c
parent896c0dff6330d461ce428d61df0f60fb8bad07a7 (diff)
exception model changed
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/io.c b/io.c
index b2acba401a..ac8e51aabb 100644
--- a/io.c
+++ b/io.c
@@ -2405,14 +2405,15 @@ opt_i_set(val)
inplace = RSTRING(val)->ptr;
}
+extern VALUE mKernel;
+extern VALUE mEnumerable;
+extern VALUE eStandardError;
+
void
Init_IO()
{
- extern VALUE mKernel;
- extern VALUE mEnumerable;
- extern VALUE eException;
-
- eEOFError = rb_define_class("EOFError", eException);
+ eIOError = rb_define_class("IOError", eStandardError);
+ eEOFError = rb_define_class("EOFError", eIOError);
id_write = rb_intern("write");