2009-06-03 Richard Guenther <rguenther@suse.de>
[official-gcc.git] / libgfortran / fmain.c
blob2e8ed885778d94b7be72a2b370305da479f9aa06
1 #include "libgfortran.h"
3 /* The main Fortran program actually is a function, called MAIN__.
4 We call it from the main() function in this file. */
5 void MAIN__ (void);
7 /* Main procedure for fortran programs. All we do is set up the environment
8 for the Fortran program. */
9 int
10 main (int argc, char *argv[])
12 /* Set up the runtime environment. */
13 PREFIX(set_args) (argc, argv);
15 /* Call the Fortran main program. Internally this is a function
16 called MAIN__ */
17 MAIN__ ();
19 /* Bye-bye! */
20 return 0;