| 161 |
|
if (waitflush > 0) |
| 162 |
|
fflush(stdout); |
| 163 |
|
stdos.xr = xres; stdos.yr = yres; |
| 164 |
< |
#if 0 |
| 164 |
> |
#ifdef getc_unlocked |
| 165 |
|
flockfile(stdout); /* avoid lock/unlock overhead */ |
| 166 |
|
#endif |
| 167 |
|
using_stdout = 1; |
| 203 |
|
goto openerr; |
| 204 |
|
if (outfmt != 'a') |
| 205 |
|
SET_FILE_BINARY(sop->ofp); |
| 206 |
< |
#if 0 |
| 206 |
> |
#ifdef getc_unlocked |
| 207 |
|
flockfile(sop->ofp); /* avoid lock/unlock overhead */ |
| 208 |
|
#endif |
| 209 |
|
if (accumulate > 0) { /* global resolution */ |
| 474 |
|
error(WARNING, errmsg); |
| 475 |
|
break; |
| 476 |
|
} |
| 477 |
< |
#if 0 |
| 477 |
> |
#ifdef getc_unlocked |
| 478 |
|
flockfile(sout.ofp); |
| 479 |
|
#endif |
| 480 |
|
if (header && checkheader(sout.ofp, outvfmt, NULL) != 1) { |
| 482 |
|
oname); |
| 483 |
|
error(USER, errmsg); |
| 484 |
|
} |
| 485 |
< |
if ((sout.xr > 0) & (sout.yr > 0) && |
| 485 |
> |
if ((sout.reclen == 1) & (sout.xr > 0) & (sout.yr > 0) && |
| 486 |
|
(!fscnresolu(&xr, &yr, sout.ofp) || |
| 487 |
|
(xr != sout.xr) | |
| 488 |
|
(yr != sout.yr))) { |
| 592 |
|
} else { |
| 593 |
|
sout.reclen = 0; |
| 594 |
|
sout.outpipe = 0; |
| 595 |
+ |
sout.xr = xres; |
| 596 |
+ |
sout.yr = yres; |
| 597 |
|
sout.ofp = NULL; |
| 598 |
|
} |
| 599 |
|
if (sout.ofp != NULL) { /* already open? */ |
| 634 |
|
oname); |
| 635 |
|
error(USER, errmsg); |
| 636 |
|
} |
| 637 |
< |
sout.xr = xres; sout.yr = yres; |
| 636 |
< |
if ((sout.xr > 0) & (sout.yr > 0) && |
| 637 |
> |
if ((sout.reclen == 1) & (sout.xr > 0) & (sout.yr > 0) && |
| 638 |
|
(!fscnresolu(&xr, &yr, sout.ofp) || |
| 639 |
|
(xr != sout.xr) | |
| 640 |
|
(yr != sout.yr))) { |