ocaml/byterun/main.c

38 lines
1.2 KiB
C
Raw Normal View History

/***********************************************************************/
/* */
/* 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_main() later). */
#include "misc.h"
#include "mlvalues.h"
#include "sys.h"
extern void caml_main P((int, char **));
#ifdef _WIN32
extern void expand_command_line P((int *, char ***));
#endif
int main(argc, argv)
int argc;
char ** argv;
{
#ifdef _WIN32
expand_command_line(&argc, &argv);
#endif
caml_main(argc, argv);
sys_exit(Val_int(0));
return 0; /* not reached */
}