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()
|
|
|
|
function that calls caml_main() 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
|
|
|
|
1996-10-07 06:20:13 -07:00
|
|
|
extern void caml_main P((int, char **));
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1996-09-06 09:51:56 -07:00
|
|
|
#ifdef _WIN32
|
|
|
|
extern void expand_command_line P((int *, char ***));
|
|
|
|
#endif
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
int main(argc, argv)
|
|
|
|
int argc;
|
1996-07-24 05:58:12 -07:00
|
|
|
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);
|
|
|
|
#endif
|
1996-10-07 06:20:13 -07:00
|
|
|
caml_main(argc, argv);
|
|
|
|
sys_exit(Val_int(0));
|
|
|
|
return 0; /* not reached */
|
1995-05-04 03:15:53 -07:00
|
|
|
}
|