mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 08:03:41 +08:00
1fc04640bb
* 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
45 lines
743 B
C
45 lines
743 B
C
/* sequential formatted external common routines*/
|
|
#include "config.h"
|
|
#include "f2c.h"
|
|
#include "fio.h"
|
|
|
|
extern char *f__fmtbuf;
|
|
|
|
integer
|
|
e_rsfe (void)
|
|
{
|
|
int n;
|
|
f__init = 1;
|
|
n = en_fio ();
|
|
f__fmtbuf = NULL;
|
|
return (n);
|
|
}
|
|
|
|
int
|
|
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);
|
|
}
|
|
|
|
integer
|
|
e_wsfe (void)
|
|
{
|
|
int n;
|
|
f__init = 1;
|
|
n = en_fio ();
|
|
f__fmtbuf = NULL;
|
|
#ifdef ALWAYS_FLUSH
|
|
if (!n && fflush (f__cf))
|
|
err (f__elist->cierr, errno, "write end");
|
|
#endif
|
|
return n;
|
|
}
|