summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/io.c b/io.c
index 429a1b9..8e0c6d8 100644
--- a/io.c
+++ b/io.c
@@ -3,7 +3,7 @@
io.c -
$Author: matz $
- $Date: 1994/08/12 11:06:40 $
+ $Date: 1994/10/14 10:00:55 $
created at: Fri Oct 15 18:08:59 JST 1993
Copyright (C) 1994 Yukihiro Matsumoto
@@ -1261,26 +1261,26 @@ VALUE rb_readonly_hook();
Init_IO()
{
- extern VALUE C_Kernel;
+ extern VALUE C_Builtin;
id_write = rb_intern("write");
id_fd = rb_intern("fd");
id_print_on = rb_intern("print_on");
- rb_define_method(C_Kernel, "syscall", Fsyscall, -1);
+ rb_define_method(C_Builtin, "syscall", Fsyscall, -1);
- rb_define_method(C_Kernel, "open", Fopen, -2);
- rb_define_method(C_Kernel, "printf", Fprintf, -1);
- rb_define_method(C_Kernel, "print", Fprint, -1);
- rb_define_method(C_Kernel, "gets", Fgets, 0);
- rb_define_alias(C_Kernel,"readline", "gets");
- rb_define_method(C_Kernel, "eof", Feof, 0);
- rb_define_method(C_Kernel, "getc", Fgetc, 0);
- rb_define_method(C_Kernel, "select", Fselect, -2);
+ rb_define_method(C_Builtin, "open", Fopen, -2);
+ rb_define_method(C_Builtin, "printf", Fprintf, -1);
+ rb_define_method(C_Builtin, "print", Fprint, -1);
+ rb_define_method(C_Builtin, "gets", Fgets, 0);
+ rb_define_alias(C_Builtin,"readline", "gets");
+ rb_define_method(C_Builtin, "eof", Feof, 0);
+ rb_define_method(C_Builtin, "getc", Fgetc, 0);
+ rb_define_method(C_Builtin, "select", Fselect, -2);
- rb_define_method(C_Kernel, "readlines", Freadlines, 0);
+ rb_define_method(C_Builtin, "readlines", Freadlines, 0);
- rb_define_method(C_Kernel, "print_on", Fprint_on, 1);
+ rb_define_method(C_Builtin, "print_on", Fprint_on, 1);
C_IO = rb_define_class("IO", C_Object);
rb_include_module(C_IO, M_Enumerable);