VM: removing init_globals(), calling init_mvm() instead

modern-harvey2
Björn Lindqvist 2016-08-23 15:25:19 +02:00
parent fb50f04821
commit 0100d22809
4 changed files with 2 additions and 5 deletions

View File

@ -2,8 +2,6 @@
namespace factor { namespace factor {
void init_globals() { init_mvm(); }
// Compile code in boot image so that we can execute the startup quotation // Compile code in boot image so that we can execute the startup quotation
// Allocates memory // Allocates memory
void factor_vm::prepare_boot_image() { void factor_vm::prepare_boot_image() {

View File

@ -1,6 +1,5 @@
namespace factor { namespace factor {
VM_C_API void init_globals();
factor_vm* new_factor_vm(); factor_vm* new_factor_vm();
VM_C_API void start_standalone_factor(int argc, vm_char** argv); VM_C_API void start_standalone_factor(int argc, vm_char** argv);

View File

@ -1,7 +1,7 @@
#include "master.hpp" #include "master.hpp"
int main(int argc, char** argv) { int main(int argc, char** argv) {
factor::init_globals(); factor::init_mvm();
factor::start_standalone_factor(argc, argv); factor::start_standalone_factor(argc, argv);
return 0; return 0;
} }

View File

@ -9,7 +9,7 @@ VM_C_API int wmain(int argc, wchar_t** argv) {
factor::fatal_error("DuplicateHandle() failed", GetLastError()); factor::fatal_error("DuplicateHandle() failed", GetLastError());
return 1; return 1;
} }
factor::init_globals(); factor::init_mvm();
factor::start_standalone_factor(argc, argv); factor::start_standalone_factor(argc, argv);
return 0; return 0;
} }