2001-05-17 02:59:29 +08:00
|
|
|
#include "config.h"
|
1998-02-01 09:37:08 +08:00
|
|
|
#include "f2c.h"
|
|
|
|
#include "fio.h"
|
|
|
|
#include "fmt.h"
|
|
|
|
#include "lio.h"
|
1998-05-19 18:52:03 +08:00
|
|
|
#include "string.h"
|
1998-02-01 09:37:08 +08:00
|
|
|
|
2002-06-01 20:38:32 +08:00
|
|
|
integer
|
|
|
|
s_wsle (cilist * a)
|
1998-02-01 09:37:08 +08:00
|
|
|
{
|
2002-06-01 20:38:32 +08:00
|
|
|
int n;
|
dfe.c (s_rdfe, s_wdfe): Wrap parentheses around assignment used as truth value.
* libI77/dfe.c (s_rdfe, s_wdfe): Wrap parentheses around
assignment used as truth value.
* libI77/due.c (s_rdue, s_wdue): Likewise.
* libI77/endfile.c (f_end): Likewise.
* libI77/iio.c (s_rsfi, s_wsfi): Likewise.
* libI77/lread.c (ERR, l_C, nmL_getc, s_rsle): Likewise.
* libI77/lwrite.c (l_g, l_put): Likewise.
* libI77/open.c (f_open): Likewise.
* libI77/rdfmt.c (rd_Z): Likewise.
* libI77/rsfe.c (s_rsfe): Likewise.
* libI77/rsne.c (hash, mk_hashtab, nl_init, getname, getdimen,
x_rsne, s_rsne): Likewise.
* libI77/sue.c (s_rsue, s_wsue): Likewise.
* libI77/wref.c (wrt_E, wrt_F): Likewise.
* libI77/wsfe.c (s_wsfe): Likewise.
* libI77/wsle.c (s_wsle): Likewise.
* libI77/wsne.c (s_wsne): Likewise.
From-SVN: r54172
2002-06-02 22:34:31 +08:00
|
|
|
if ((n = c_le (a)))
|
2002-06-01 20:38:32 +08:00
|
|
|
return (n);
|
|
|
|
f__reading = 0;
|
|
|
|
f__external = 1;
|
|
|
|
f__formatted = 1;
|
|
|
|
f__putn = x_putc;
|
|
|
|
f__lioproc = l_write;
|
|
|
|
L_len = LINE;
|
|
|
|
f__donewrec = x_wSL;
|
|
|
|
if (f__curunit->uwrt != 1 && f__nowwriting (f__curunit))
|
|
|
|
err (a->cierr, errno, "list output start");
|
|
|
|
return (0);
|
|
|
|
}
|
1998-02-01 09:37:08 +08:00
|
|
|
|
2002-06-01 20:38:32 +08:00
|
|
|
integer
|
|
|
|
e_wsle (void)
|
1998-02-01 09:37:08 +08:00
|
|
|
{
|
2002-06-01 20:38:32 +08:00
|
|
|
int n;
|
|
|
|
f__init = 1;
|
|
|
|
n = f__putbuf ('\n');
|
|
|
|
f__recpos = 0;
|
1998-02-01 09:37:08 +08:00
|
|
|
#ifdef ALWAYS_FLUSH
|
2002-06-01 20:38:32 +08:00
|
|
|
if (!n && fflush (f__cf))
|
|
|
|
err (f__elist->cierr, errno, "write end");
|
1998-02-01 09:37:08 +08:00
|
|
|
#endif
|
2002-06-01 20:38:32 +08:00
|
|
|
return (n);
|
|
|
|
}
|