ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/rmtxop.c
(Generate patch)

Comparing ray/src/util/rmtxop.c (file contents):
Revision 2.2 by greg, Sat May 31 19:21:21 2014 UTC vs.
Revision 2.4 by greg, Tue Aug 5 21:45:05 2014 UTC

# Line 22 | Line 22 | typedef struct {
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
# Line 232 | Line 232 | main(int argc, char *argv[])
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines