summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
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");