]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/io.cpp
VM: better init of stdin, stdout and stderr
[factor.git] / vm / io.cpp
index 6f768b034c9ef0e66b5cc22ed01ff325a048ab9f..ec3e2c0230f6884e5268d75a76c52fc79fcec8c9 100644 (file)
--- a/vm/io.cpp
+++ b/vm/io.cpp
@@ -41,13 +41,6 @@ int raw_fclose(FILE* stream) {
   return 0;
 }
 
-
-void factor_vm::init_c_io() {
-  special_objects[OBJ_STDIN] = allot_alien(false_object, (cell)stdin);
-  special_objects[OBJ_STDOUT] = allot_alien(false_object, (cell)stdout);
-  special_objects[OBJ_STDERR] = allot_alien(false_object, (cell)stderr);
-}
-
 // Allocates memory
 void factor_vm::io_error_if_not_EINTR() {
   if (errno == EINTR)