46 lines
1.4 KiB
C
46 lines
1.4 KiB
C
/***********************************************************************/
|
|
/* */
|
|
/* Objective Caml */
|
|
/* */
|
|
/* Xavier Leroy and Damien Doligez, INRIA Rocquencourt */
|
|
/* */
|
|
/* Copyright 1996 Institut National de Recherche en Informatique et */
|
|
/* Automatique. Distributed only by permission. */
|
|
/* */
|
|
/***********************************************************************/
|
|
|
|
/* $Id$ */
|
|
|
|
/* Main entry point (can be overriden by a user-provided main()
|
|
function that calls caml_startup() later. */
|
|
|
|
#include "misc.h"
|
|
#include "mlvalues.h"
|
|
#include "sys.h"
|
|
|
|
extern void caml_main (char **);
|
|
|
|
#ifdef _WIN32
|
|
extern void expand_command_line (int *, char ***);
|
|
#endif
|
|
|
|
#if macintosh
|
|
#include "rotatecursor.h"
|
|
#include "signals.h"
|
|
int volatile have_to_interact = 0;
|
|
#endif
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
#ifdef _WIN32
|
|
expand_command_line(&argc, &argv);
|
|
#endif
|
|
#if macintosh
|
|
rotatecursor_init (&something_to_do, &have_to_interact);
|
|
#endif
|
|
caml_main(argv);
|
|
sys_exit(Val_int(0));
|
|
return 0; /* not reached */
|
|
}
|
|
|