ocaml/byterun/main.c

34 lines
1.1 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_main() later). */
#include "misc.h"
extern int 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
return caml_main(argc, argv);
}