1998-02-01 09:37:08 +08:00
|
|
|
/* date_.f -- translated by f2c (version 19961001).
|
|
|
|
You must link the resulting object file with the libraries:
|
|
|
|
-lf2c -lm (in that order)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "f2c.h"
|
|
|
|
|
|
|
|
/* Table of constant values */
|
|
|
|
|
|
|
|
static integer c__5 = 5;
|
|
|
|
|
2002-06-01 20:38:32 +08:00
|
|
|
/* Subroutine */ int
|
|
|
|
G77_date_y2kbug_0 (char *buf, ftnlen buf_len)
|
1998-02-01 09:37:08 +08:00
|
|
|
{
|
2002-06-01 20:38:32 +08:00
|
|
|
/* System generated locals */
|
|
|
|
address a__1[5];
|
|
|
|
longint i__1;
|
|
|
|
integer i__2[5];
|
|
|
|
char ch__1[24];
|
|
|
|
|
|
|
|
/* Builtin functions */
|
|
|
|
/* Subroutine */ int s_copy (), s_cat ();
|
|
|
|
|
|
|
|
/* Local variables */
|
|
|
|
static char cbuf[24];
|
|
|
|
extern longint G77_time_0 ();
|
|
|
|
extern /* Character */ void G77_ctime_0 ();
|
|
|
|
|
|
|
|
i__1 = G77_time_0 ();
|
|
|
|
G77_ctime_0 (ch__1, 24L, &i__1);
|
|
|
|
s_copy (cbuf, ch__1, 24L, 24L);
|
1998-02-01 09:37:08 +08:00
|
|
|
/* Writing concatenation */
|
2002-06-01 20:38:32 +08:00
|
|
|
i__2[0] = 2, a__1[0] = cbuf + 8;
|
|
|
|
i__2[1] = 1, a__1[1] = "-";
|
|
|
|
i__2[2] = 3, a__1[2] = cbuf + 4;
|
|
|
|
i__2[3] = 1, a__1[3] = "-";
|
|
|
|
i__2[4] = 2, a__1[4] = cbuf + 22;
|
|
|
|
s_cat (buf, a__1, i__2, &c__5, buf_len);
|
|
|
|
return 0;
|
|
|
|
} /* date_ */
|
1998-02-01 09:37:08 +08:00
|
|
|
|
2001-10-01 06:06:23 +08:00
|
|
|
#ifdef PIC
|
|
|
|
# include <stdio.h>
|
|
|
|
|
|
|
|
const char *G77_Non_Y2K_Compliance_Message =
|
2002-06-01 20:38:32 +08:00
|
|
|
"Call to non Y2K compliant subroutine detected.";
|
2001-10-01 06:06:23 +08:00
|
|
|
|
2002-06-01 20:38:32 +08:00
|
|
|
int
|
2002-06-06 03:07:11 +08:00
|
|
|
G77_date_y2kbuggy_0 (char *buf __attribute__ ((__unused__)),
|
|
|
|
ftnlen buf_len __attribute__ ((__unused__)))
|
2001-10-01 06:06:23 +08:00
|
|
|
{
|
2002-06-01 20:38:32 +08:00
|
|
|
extern int G77_abort_0 ();
|
2001-10-01 06:06:23 +08:00
|
|
|
fprintf (stderr, "%s\n", G77_Non_Y2K_Compliance_Message);
|
2002-06-01 20:38:32 +08:00
|
|
|
G77_abort_0 ();
|
2001-10-01 06:06:23 +08:00
|
|
|
}
|
|
|
|
#endif
|