summaryrefslogtreecommitdiff
path: root/libf2c/libF77
diff options
context:
space:
mode:
Diffstat (limited to 'libf2c/libF77')
-rw-r--r--libf2c/libF77/F77_aloc.c6
-rw-r--r--libf2c/libF77/exit_.c6
-rw-r--r--libf2c/libF77/main.c8
-rw-r--r--libf2c/libF77/s_paus.c6
-rw-r--r--libf2c/libF77/s_stop.c6
-rw-r--r--libf2c/libF77/setarg.c4
-rw-r--r--libf2c/libF77/setsig.c8
-rw-r--r--libf2c/libF77/sig_die.c6
-rw-r--r--libf2c/libF77/signal1.h05
9 files changed, 0 insertions, 55 deletions
diff --git a/libf2c/libF77/F77_aloc.c b/libf2c/libF77/F77_aloc.c
index f34bfa07975..8716493aa70 100644
--- a/libf2c/libF77/F77_aloc.c
+++ b/libf2c/libF77/F77_aloc.c
@@ -7,13 +7,7 @@
static integer memfailure = 3;
#include <stdlib.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
extern void G77_exit_0 (integer*);
-#ifdef __cplusplus
- }
-#endif
char *
F77_aloc(integer Len, char *whence)
diff --git a/libf2c/libF77/exit_.c b/libf2c/libF77/exit_.c
index 7c361dbd05d..e86d07068b4 100644
--- a/libf2c/libF77/exit_.c
+++ b/libf2c/libF77/exit_.c
@@ -13,9 +13,6 @@
#undef min
#undef max
#include <stdlib.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
extern void f_exit(void);
void
@@ -26,6 +23,3 @@ G77_exit_0 (integer *rc)
#endif
exit(*rc);
}
-#ifdef __cplusplus
-}
-#endif
diff --git a/libf2c/libF77/main.c b/libf2c/libF77/main.c
index 9f41947b977..131c06ca394 100644
--- a/libf2c/libF77/main.c
+++ b/libf2c/libF77/main.c
@@ -10,10 +10,6 @@
#define VOID void
#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-
extern void f_exit(void);
#ifndef NO_ONEXIT
#define ONEXIT atexit
@@ -23,10 +19,6 @@ extern int atexit(void (*)(void));
extern void f_init(void);
extern int MAIN__(void);
-#ifdef __cplusplus
- }
-#endif
-
main(int argc, char **argv)
{
f_setarg(argc, argv);
diff --git a/libf2c/libF77/s_paus.c b/libf2c/libF77/s_paus.c
index 3fe256c948c..0f1b1917ab3 100644
--- a/libf2c/libF77/s_paus.c
+++ b/libf2c/libF77/s_paus.c
@@ -9,9 +9,6 @@
#undef min
#undef max
#include <stdlib.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
extern int getpid(void), isatty(int), pause(void);
extern VOID f_exit(Void);
@@ -69,7 +66,4 @@ s_paus(char *s, ftnlen n)
fprintf(stderr, "Execution resumes after PAUSE.\n");
fflush(stderr);
return 0; /* NOT REACHED */
-#ifdef __cplusplus
- }
-#endif
}
diff --git a/libf2c/libF77/s_stop.c b/libf2c/libF77/s_stop.c
index 6e8652aeb2e..391148f6c72 100644
--- a/libf2c/libF77/s_stop.c
+++ b/libf2c/libF77/s_stop.c
@@ -5,9 +5,6 @@
#undef min
#undef max
#include <stdlib.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
void f_exit(void);
int s_stop(char *s, ftnlen n)
@@ -32,6 +29,3 @@ exit(0);
return 0; /* NOT REACHED */
}
-#ifdef __cplusplus
-}
-#endif
diff --git a/libf2c/libF77/setarg.c b/libf2c/libF77/setarg.c
index 83aedaf5fb7..5d8eea6ae65 100644
--- a/libf2c/libF77/setarg.c
+++ b/libf2c/libF77/setarg.c
@@ -11,10 +11,6 @@
int f__xargc;
char **f__xargv;
-#ifdef __cplusplus
- }
-#endif
-
void
f_setarg(int argc, char **argv)
{
diff --git a/libf2c/libF77/setsig.c b/libf2c/libF77/setsig.c
index 38fce0ac0c1..2ff6c06acd3 100644
--- a/libf2c/libF77/setsig.c
+++ b/libf2c/libF77/setsig.c
@@ -16,10 +16,6 @@
#define VOID void
#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-
extern void sig_die(char*, int);
#define Int int
@@ -66,10 +62,6 @@ sig_die("Trace trap", 1);
#endif
-#ifdef __cplusplus
- }
-#endif
-
void
f_setsig()
{
diff --git a/libf2c/libF77/sig_die.c b/libf2c/libF77/sig_die.c
index 507c7ee658e..7ed419aa354 100644
--- a/libf2c/libF77/sig_die.c
+++ b/libf2c/libF77/sig_die.c
@@ -8,9 +8,6 @@
#endif
#include <stdlib.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
extern void f_exit(void);
void sig_die(register char *s, int kill)
@@ -36,6 +33,3 @@ void sig_die(register char *s, int kill)
exit(1);
}
}
-#ifdef __cplusplus
-}
-#endif
diff --git a/libf2c/libF77/signal1.h0 b/libf2c/libF77/signal1.h0
index d6d7b55d59c..9a0af2762da 100644
--- a/libf2c/libF77/signal1.h0
+++ b/libf2c/libF77/signal1.h0
@@ -22,10 +22,5 @@ typedef Sigret_t (*sig_pf)(Sigarg_t);
#define signal1(a,b) signal(a,(sig_pf)b)
-#ifdef __cplusplus
-#define Sigarg ...
-#define Use_Sigarg
-#else
#define Sigarg Int n
#define Use_Sigarg n = n /* shut up compiler warning */
-#endif