1998-02-01 02:37:08 +01:00
|
|
|
/* sequential formatted external common routines*/
|
2001-07-07 20:51:58 +02:00
|
|
|
#include "config.h"
|
1998-02-01 02:37:08 +01:00
|
|
|
#include "f2c.h"
|
|
|
|
#include "fio.h"
|
|
|
|
|
|
|
|
extern char *f__fmtbuf;
|
|
|
|
|
2002-06-01 14:38:32 +02:00
|
|
|
integer
|
|
|
|
e_rsfe (void)
|
|
|
|
{
|
|
|
|
int n;
|
|
|
|
f__init = 1;
|
|
|
|
n = en_fio ();
|
|
|
|
f__fmtbuf = NULL;
|
|
|
|
return (n);
|
1998-02-01 02:37:08 +01:00
|
|
|
}
|
2002-06-01 14:38:32 +02:00
|
|
|
|
main.c (main): Avoid implicit int.
* libF77/main.c (main): Avoid implicit int.
* libI77/dfe.c (y_rsk, y_getc, c_dfe): Likewise.
* libI77/due.c (c_due): Likewise.
* libI77/err.c (f__canseek, f__nowreading, f__nowwriting):
Likewise.
* libI77/fmt.c (op_gen, ne_d, e_d, pars_f, type_f, en_fio):
Likewise.
* libI77/iio.c (z_getc, z_rnew, c_si, z_wnew): Likewise.
* libI77/lread.c (t_getc, c_le, l_read): Likewise.
* libI77/lwrite.c (l_write): Likewise.
* libI77/open.c (fk_open): Likewise.
* libI77/rdfmt.c (rd_ed, rd_ned): Likewise.
* libI77/rsfe.c (xrd_SL, x_getc, x_endp, x_rev): Likewise.
* libI77/rsne.c (t_getc, x_rsne): Likewise.
* libI77/sfe.c (c_sfe): Likewise.
* libI77/sue.c (c_sue): Likewise.
* libI77/uio.c (do_us): Likewise.
* libI77/wref.c (wrt_E, wrt_F): Likewise.
* libI77/wrtfmt.c (wrt_L, w_ed, w_ned): Likewise.
From-SVN: r54169
2002-06-02 15:01:12 +02:00
|
|
|
int
|
2002-06-01 14:38:32 +02:00
|
|
|
c_sfe (cilist * a) /* check */
|
|
|
|
{
|
|
|
|
unit *p;
|
|
|
|
if (a->ciunit >= MXUNIT || a->ciunit < 0)
|
|
|
|
err (a->cierr, 101, "startio");
|
|
|
|
p = &f__units[a->ciunit];
|
|
|
|
if (p->ufd == NULL && fk_open (SEQ, FMT, a->ciunit))
|
|
|
|
err (a->cierr, 114, "sfe");
|
|
|
|
if (!p->ufmt)
|
|
|
|
err (a->cierr, 102, "sfe");
|
|
|
|
return (0);
|
1998-02-01 02:37:08 +01:00
|
|
|
}
|
2002-06-01 14:38:32 +02:00
|
|
|
|
|
|
|
integer
|
|
|
|
e_wsfe (void)
|
1998-02-01 02:37:08 +01:00
|
|
|
{
|
2002-06-01 14:38:32 +02:00
|
|
|
int n;
|
|
|
|
f__init = 1;
|
|
|
|
n = en_fio ();
|
|
|
|
f__fmtbuf = NULL;
|
2000-03-12 20:20:47 +01:00
|
|
|
#ifdef ALWAYS_FLUSH
|
2002-06-01 14:38:32 +02:00
|
|
|
if (!n && fflush (f__cf))
|
|
|
|
err (f__elist->cierr, errno, "write end");
|
2000-03-12 20:20:47 +01:00
|
|
|
#endif
|
2002-06-01 14:38:32 +02:00
|
|
|
return n;
|
1998-05-19 12:52:03 +02:00
|
|
|
}
|