mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-18 05:09:01 +08:00
5a276a25c6
Tue May 19 12:50:27 1998 Craig Burley <burley@gnu.org> Break up main() into separate .o's so making and linking against shared libraries with non-Fortran main() routines is easier: * Makefile.in (MISC): Add setarg.o and setsig.o. * libF77/Makefile.in (MISC): Ditto. * libF77/setarg.c: New file, contains f_setarg(). * libF77/setsig.c: New file, contains f_setsig(). * libF77/getarg_.c: Rename xarg* to f__xarg*. * libF77/iargc_.c: Ditto From-SVN: r19956
30 lines
424 B
C
30 lines
424 B
C
/* Set up the global argc/argv info for use by getarg_, iargc_, and
|
|
g77's inlined intrinsic equivalents. */
|
|
|
|
#ifndef KR_headers
|
|
#undef VOID
|
|
#include <stdlib.h>
|
|
#endif
|
|
|
|
#ifndef VOID
|
|
#define VOID void
|
|
#endif
|
|
|
|
int f__xargc;
|
|
char **f__xargv;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
void
|
|
#ifdef KR_headers
|
|
f_setarg(argc, argv) int argc; char **argv;
|
|
#else
|
|
f_setarg(int argc, char **argv)
|
|
#endif
|
|
{
|
|
f__xargc = argc;
|
|
f__xargv = argv;
|
|
}
|