| 1 |
#include "f2c.h" |
| 2 |
#include "fio.h" |
| 3 |
#include "fmt.h" |
| 4 |
#include "lio.h" |
| 5 |
#include "string.h" |
| 6 |
#ifdef __cplusplus |
| 7 |
extern "C" { |
| 8 |
#endif |
| 9 |
|
| 10 |
#ifdef KR_headers |
| 11 |
integer s_wsle(a) cilist *a; |
| 12 |
#else |
| 13 |
integer s_wsle(cilist *a) |
| 14 |
#endif |
| 15 |
{ |
| 16 |
int n; |
| 17 |
if(n=c_le(a)) return(n); |
| 18 |
f__reading=0; |
| 19 |
f__external=1; |
| 20 |
f__formatted=1; |
| 21 |
f__putn = x_putc; |
| 22 |
f__lioproc = l_write; |
| 23 |
L_len = LINE; |
| 24 |
f__donewrec = x_wSL; |
| 25 |
if(f__curunit->uwrt != 1 && f__nowwriting(f__curunit)) |
| 26 |
err(a->cierr, errno, "list output start"); |
| 27 |
return(0); |
| 28 |
} |
| 29 |
|
| 30 |
integer e_wsle(Void) |
| 31 |
{ |
| 32 |
int n = f__putbuf('\n'); |
| 33 |
f__recpos=0; |
| 34 |
#ifdef ALWAYS_FLUSH |
| 35 |
if (!n && fflush(f__cf)) |
| 36 |
err(f__elist->cierr, errno, "write end"); |
| 37 |
#endif |
| 38 |
return(n); |
| 39 |
} |
| 40 |
#ifdef __cplusplus |
| 41 |
} |
| 42 |
#endif |