* doc/invoke.text (--help): Document --help=common.
[official-gcc.git] / libgfortran / fmain.c
blob397f17bdcf5bccadf693559caf958fb181f75ea6
1 #include "config.h"
2 #include "libgfortran.h"
4 /* The main Fortran program actually is a function, called MAIN__.
5 We call it from the main() function in this file. */
6 void MAIN__ (void);
8 /* Main procedure for fortran programs. All we do is set up the environment
9 for the Fortran program. */
10 int
11 main (int argc, char *argv[])
13 /* Store the path of the executable file. */
14 store_exe_path (argv[0]);
16 /* Set up the runtime environment. */
17 set_args (argc, argv);
20 /* Call the Fortran main program. Internally this is a function
21 called MAIN__ */
22 MAIN__ ();
24 /* Bye-bye! */
25 return 0;