1995-08-09 08:06:35 -07:00
|
|
|
/***********************************************************************/
|
|
|
|
/* */
|
1996-04-30 07:53:58 -07:00
|
|
|
/* Objective Caml */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* */
|
|
|
|
/* Xavier Leroy and Damien Doligez, INRIA Rocquencourt */
|
|
|
|
/* */
|
1996-04-30 07:53:58 -07:00
|
|
|
/* Copyright 1996 Institut National de Recherche en Informatique et */
|
1995-08-09 08:06:35 -07:00
|
|
|
/* Automatique. Distributed only by permission. */
|
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
1996-07-24 05:58:12 -07:00
|
|
|
/* Main entry point (can be overriden by a user-provided main()
|
1997-02-02 06:53:44 -08:00
|
|
|
function that calls caml_startup() later. */
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
#include "misc.h"
|
1996-10-07 06:20:13 -07:00
|
|
|
#include "mlvalues.h"
|
|
|
|
#include "sys.h"
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1997-09-02 05:55:01 -07:00
|
|
|
extern void caml_main (char **);
|
1996-11-02 10:00:46 -08:00
|
|
|
|
1996-09-06 09:51:56 -07:00
|
|
|
#ifdef _WIN32
|
1997-09-02 05:55:01 -07:00
|
|
|
extern void expand_command_line (int *, char ***);
|
1996-09-06 09:51:56 -07:00
|
|
|
#endif
|
|
|
|
|
1996-11-02 10:00:46 -08:00
|
|
|
#if macintosh
|
|
|
|
#include "rotatecursor.h"
|
|
|
|
#include "signals.h"
|
|
|
|
int volatile have_to_interact = 0;
|
|
|
|
#endif
|
|
|
|
|
1997-09-02 05:55:01 -07:00
|
|
|
int main(int argc, char **argv)
|
1995-05-04 03:15:53 -07:00
|
|
|
{
|
1996-09-06 09:51:56 -07:00
|
|
|
#ifdef _WIN32
|
|
|
|
expand_command_line(&argc, &argv);
|
1996-11-02 10:00:46 -08:00
|
|
|
#endif
|
|
|
|
#if macintosh
|
|
|
|
rotatecursor_init (&something_to_do, &have_to_interact);
|
1996-09-06 09:51:56 -07:00
|
|
|
#endif
|
1996-11-07 02:57:59 -08:00
|
|
|
caml_main(argv);
|
1996-10-07 06:20:13 -07:00
|
|
|
sys_exit(Val_int(0));
|
|
|
|
return 0; /* not reached */
|
1995-05-04 03:15:53 -07:00
|
|
|
}
|
1997-02-02 06:53:44 -08:00
|
|
|
|