source: branches/libc-0.6/src/gcc/libf2c/libF77/main.c

Last change on this file was 1392, checked in by bird, 21 years ago

This commit was generated by cvs2svn to compensate for changes in r1391,
which included commits to RCS files with non-trunk default branches.

  • Property cvs2svn:cvs-rev set to 1.1.1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 731 bytes
Line 
1/* STARTUP PROCEDURE FOR UNIX FORTRAN PROGRAMS */
2
3#include <stdio.h>
4#include "signal1.h"
5
6#include <stdlib.h>
7
8extern void f_exit (void);
9#ifndef NO_ONEXIT
10#define ONEXIT atexit
11extern int atexit (void (*)(void));
12#endif
13
14extern void f_init (void);
15extern int MAIN__ (void);
16extern void f_setarg (int, char **);
17extern void f_setsig (void);
18
19int
20main (int argc, char **argv)
21{
22 f_setarg (argc, argv);
23 f_setsig ();
24 f_init ();
25#ifndef NO_ONEXIT
26 ONEXIT (f_exit);
27#endif
28 MAIN__ ();
29#ifdef NO_ONEXIT
30 f_exit ();
31#endif
32 exit (0); /* exit(0) rather than return(0) to bypass Cray bug */
33 return 0; /* For compilers that complain of missing return values; */
34 /* others will complain that this is unreachable code. */
35}
Note: See TracBrowser for help on using the repository browser.