summaryrefslogtreecommitdiffstats
path: root/contrib/libf2c/f2cext.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-09-19 05:59:11 +0000
committerobrien <obrien@FreeBSD.org>1999-09-19 05:59:11 +0000
commitc53c47e769827bb2d6d596865051a4af89d246fd (patch)
tree354ca5598013982362bb6e08cf4b5d6b79b0c370 /contrib/libf2c/f2cext.c
parent98e51635e2084da6cfe0d3b1782cb95b80fd2caa (diff)
downloadFreeBSD-src-c53c47e769827bb2d6d596865051a4af89d246fd.zip
FreeBSD-src-c53c47e769827bb2d6d596865051a4af89d246fd.tar.gz
Virgin import of GCC 2.95.1's libf2c
Diffstat (limited to 'contrib/libf2c/f2cext.c')
-rw-r--r--contrib/libf2c/f2cext.c40
1 files changed, 33 insertions, 7 deletions
diff --git a/contrib/libf2c/f2cext.c b/contrib/libf2c/f2cext.c
index 2b51d88..56f9490 100644
--- a/contrib/libf2c/f2cext.c
+++ b/contrib/libf2c/f2cext.c
@@ -16,7 +16,7 @@ License along with GNU Fortran; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-
+#include <math.h> /* for j0 et al */
#include <f2c.h>
typedef void *sig_proc; /* For now, this will have to do. */
@@ -203,10 +203,23 @@ void ctime_ (char *chtime, const ftnlen Lchtime, longint *xstime) {
}
#endif
-#ifdef Ldate
+#ifdef Ldate_y2kbuggy
int date_ (char *buf, ftnlen buf_len) {
- extern int G77_date_0 (char *buf, ftnlen buf_len);
- return G77_date_0 (buf, buf_len);
+ /* Fail to link, so user sees attempt to invoke non-Y2K-compliant
+ routine. */
+ extern int G77_date_y2kbuggy_0 (char *buf, ftnlen buf_len);
+ return G77_date_y2kbuggy_0 (buf, buf_len);
+}
+#endif
+
+#ifdef Ldate_y2kbug
+int date_y2kbug__ (char *buf, ftnlen buf_len) {
+ /* If user wants to invoke the non-Y2K-compliant routine via
+ an `EXTERNAL' interface, avoiding the warning via g77's
+ `INTRINSIC' interface, force coding of "y2kbug" string in
+ user's program. */
+ extern int G77_date_y2kbug_0 (char *buf, ftnlen buf_len);
+ return G77_date_y2kbug_0 (buf, buf_len);
}
#endif
@@ -540,10 +553,23 @@ integer unlink_ (const char *str, const ftnlen Lstr) {
}
#endif
-#ifdef Lvxtidt
+#ifdef Lvxtidt_y2kbuggy
int vxtidate_ (integer *m, integer *d, integer *y) {
- extern int G77_vxtidate_0 (integer *m, integer *d, integer *y);
- return G77_vxtidate_0 (m, d, y);
+ /* Fail to link, so user sees attempt to invoke non-Y2K-compliant
+ routine. */
+ extern int G77_vxtidate_y2kbuggy_0 (integer *m, integer *d, integer *y);
+ return G77_vxtidate_y2kbuggy_0 (m, d, y);
+}
+#endif
+
+#ifdef Lvxtidt_y2kbug
+int vxtidate_y2kbug__ (integer *m, integer *d, integer *y) {
+ /* If user wants to invoke the non-Y2K-compliant routine via
+ an `EXTERNAL' interface, avoiding the warning via g77's
+ `INTRINSIC' interface, force coding of "y2kbug" string in
+ user's program. */
+ extern int G77_vxtidate_y2kbug_0 (integer *m, integer *d, integer *y);
+ return G77_vxtidate_y2kbug_0 (m, d, y);
}
#endif
OpenPOWER on IntegriCloud