fmain.c 631 B

12345678910111213141516171819202122232425
  1. /* Note that this file is not used as of GFortran 4.5, and exists here
  2. only for backwards compatibility. */
  3. #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);
  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[])
  11. {
  12. /* Set up the runtime environment. */
  13. set_args (argc, argv);
  14. /* Call the Fortran main program. Internally this is a function
  15. called MAIN__ */
  16. MAIN__ ();
  17. /* Bye-bye! */
  18. return 0;
  19. }