VM: Refactor main-* to Factor style

db4
Erik Charlebois 2013-05-11 22:12:16 -04:00
parent 302826c7be
commit d20bf1e213
2 changed files with 14 additions and 20 deletions

View File

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

View File

@ -1,21 +1,16 @@
#include "master.hpp"
VM_C_API int wmain(int argc, wchar_t **argv)
{
factor::init_globals();
factor::start_standalone_factor(argc,argv);
return 0;
VM_C_API int wmain(int argc, wchar_t** argv) {
factor::init_globals();
factor::start_standalone_factor(argc, argv);
return 0;
}
int WINAPI WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
int argc;
wchar_t **argv = CommandLineToArgvW(GetCommandLine(),&argc);
wmain(argc,argv);
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow) {
int argc;
wchar_t** argv = CommandLineToArgvW(GetCommandLine(), &argc);
wmain(argc, argv);
return 0;
return 0;
}