VM: removing init_globals(), calling init_mvm() instead
parent
fb50f04821
commit
0100d22809
|
@ -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() {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue