2001-02-12 17:57:34 -08:00
|
|
|
#include <windows.h>
|
2002-06-07 02:49:45 -07:00
|
|
|
#include <mlvalues.h>
|
|
|
|
#include <callback.h>
|
|
|
|
#include <sys.h>
|
|
|
|
|
2002-04-16 22:36:36 -07:00
|
|
|
extern int __argc;
|
2001-02-12 17:57:34 -08:00
|
|
|
extern char **__argv;
|
2004-04-01 05:09:21 -08:00
|
|
|
extern void caml_expand_command_line(int * argcp, char *** argvp);
|
2002-04-16 22:36:36 -07:00
|
|
|
extern void caml_main (char **);
|
2001-02-12 17:57:34 -08:00
|
|
|
|
|
|
|
int WINAPI WinMain(HINSTANCE h, HINSTANCE HPrevInstance,
|
|
|
|
LPSTR lpCmdLine, int nCmdShow)
|
|
|
|
{
|
2004-04-01 05:09:21 -08:00
|
|
|
caml_expand_command_line(&__argc, &__argv);
|
2002-06-07 02:49:45 -07:00
|
|
|
caml_main(__argv);
|
|
|
|
sys_exit(Val_int(0));
|
|
|
|
return 0;
|
2001-02-12 17:57:34 -08:00
|
|
|
}
|