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>
|
|
|
|
|
2007-11-06 07:16:56 -08:00
|
|
|
CAMLextern int __argc;
|
|
|
|
CAMLextern char **__argv;
|
|
|
|
CAMLextern void caml_expand_command_line(int * argcp, char *** argvp);
|
|
|
|
/* 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
|
|
|
}
|