8 |
|
|
9 |
|
#include "rcontrib.h" |
10 |
|
#include "resolu.h" |
11 |
+ |
#include <ctype.h> |
12 |
|
|
13 |
|
/* Close output stream and free record */ |
14 |
|
static void |
183 |
|
} |
184 |
|
} |
185 |
|
if (!noopen && sop->ofp == NULL) { /* open output stream */ |
185 |
– |
long i; |
186 |
|
if (oname[0] == '!') /* output to command */ |
187 |
|
sop->ofp = popen(oname+1, "w"); |
188 |
|
else /* else open file */ |
212 |
|
sop->xr = xres; sop->yr = yres; |
213 |
|
} |
214 |
|
printresolu(sop->ofp, sop->xr, sop->yr); |
215 |
– |
#if 0 |
216 |
– |
/* play catch-up */ |
217 |
– |
for (i = accumulate > 0 ? lastdone/accumulate : 0; i--; ) { |
218 |
– |
int j = sop->reclen; |
219 |
– |
if (j <= 0) j = 1; |
220 |
– |
while (j--) |
221 |
– |
put_contrib(nocontrib, sop->ofp); |
222 |
– |
if (outfmt == 'a') |
223 |
– |
putc('\n', sop->ofp); |
224 |
– |
} |
225 |
– |
#endif |
215 |
|
if (waitflush > 0) |
216 |
|
fflush(sop->ofp); |
217 |
|
} |