22 |
|
int op; /* '*' or '+' */ |
23 |
|
} ROPERAT; /* matrix operation */ |
24 |
|
|
25 |
< |
int outfmt = DTascii; /* output format */ |
25 |
> |
int outfmt = DTfromHeader; /* output format */ |
26 |
|
int verbose = 0; /* verbose reporting? */ |
27 |
|
|
28 |
|
static void |
232 |
|
if (mres == NULL) /* check that we got something */ |
233 |
|
goto userr; |
234 |
|
/* write result to stdout */ |
235 |
+ |
#ifdef getc_unlocked |
236 |
+ |
flockfile(stdout); |
237 |
+ |
#endif |
238 |
+ |
#ifdef _WIN32 |
239 |
+ |
if (outfmt != DTascii) |
240 |
+ |
_setmode(fileno(stdout), _O_BINARY); |
241 |
+ |
#endif |
242 |
|
newheader("RADIANCE", stdout); |
243 |
|
printargs(argc, argv, stdout); |
244 |
|
nbw = rmx_write(mres, outfmt, stdout); |