mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-27 08:59:10 +08:00
7210c9aa60
* libF77/main.c (f_setarg, f_setsig): Prototype. * libI77/lread.c (quad_read): Delete. * libI77/uio.c: Include config.h. * libI77/wref.c (wrt_E): Cast isdigit arg to unsigned char. * libU77/dtime_.c (clk_tck): Move to the scope where it is used. * libU77/etime_.c (clk_tck): Likewise. From-SVN: r54224
36 lines
731 B
C
36 lines
731 B
C
/* STARTUP PROCEDURE FOR UNIX FORTRAN PROGRAMS */
|
|
|
|
#include <stdio.h>
|
|
#include "signal1.h"
|
|
|
|
#include <stdlib.h>
|
|
|
|
extern void f_exit (void);
|
|
#ifndef NO_ONEXIT
|
|
#define ONEXIT atexit
|
|
extern int atexit (void (*)(void));
|
|
#endif
|
|
|
|
extern void f_init (void);
|
|
extern int MAIN__ (void);
|
|
extern void f_setarg (int, char **);
|
|
extern void f_setsig (void);
|
|
|
|
int
|
|
main (int argc, char **argv)
|
|
{
|
|
f_setarg (argc, argv);
|
|
f_setsig ();
|
|
f_init ();
|
|
#ifndef NO_ONEXIT
|
|
ONEXIT (f_exit);
|
|
#endif
|
|
MAIN__ ();
|
|
#ifdef NO_ONEXIT
|
|
f_exit ();
|
|
#endif
|
|
exit (0); /* exit(0) rather than return(0) to bypass Cray bug */
|
|
return 0; /* For compilers that complain of missing return values; */
|
|
/* others will complain that this is unreachable code. */
|
|
}
|