]> gitweb.factorcode.org Git - factor.git/commitdiff
vm: don't mix iostream and stdio
authorJoe Groff <arcata@gmail.com>
Thu, 20 Oct 2011 23:04:01 +0000 (16:04 -0700)
committerJoe Groff <arcata@gmail.com>
Fri, 28 Oct 2011 04:14:48 +0000 (21:14 -0700)
vm/factor.cpp

index 02e42057435f6f3fbb9dcba182187e0480438e6f..b2ff2450378ad97356a100d9e5a72b9aa41b7959 100755 (executable)
@@ -84,15 +84,14 @@ void factor_vm::init_parameters_from_args(vm_parameters *p, int argc, vm_char **
 /* Compile code in boot image so that we can execute the startup quotation */
 void factor_vm::prepare_boot_image()
 {
-       std::cout << "*** Stage 2 early init... ";
-       fflush(stdout);
+       std::cout << "*** Stage 2 early init... " << std::flush;
 
        compile_all_words();
        update_code_heap_words(true);
        initialize_all_quotations();
        special_objects[OBJ_STAGE2] = true_object;
 
-       std::cout << "done\n";
+       std::cout << "done" << std::endl;
 }
 
 void factor_vm::init_factor(vm_parameters *p)