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.6 by greg, Tue Dec 16 20:21:46 2014 UTC vs.
Revision 2.10 by greg, Thu Aug 18 17:57:57 2016 UTC

# Line 10 | Line 10 | static const char RCSid[] = "$Id$";
10   #include "rtio.h"
11   #include "resolu.h"
12   #include "rmatrix.h"
13 + #include "platform.h"
14  
15   #define MAXCOMP         50              /* #components we support */
16  
# Line 22 | Line 23 | typedef struct {
23          int             op;                     /* '*' or '+' */
24   } ROPERAT;                              /* matrix operation */
25  
25 int     outfmt = DTfromHeader;          /* output format */
26   int     verbose = 0;                    /* verbose reporting? */
27  
28   static void
# Line 165 | Line 165 | get_factors(double da[], int n, char *av[])
165   int
166   main(int argc, char *argv[])
167   {
168 +        int     outfmt = DTfromHeader;
169          RMATRIX *mres = NULL;
170          ROPERAT op;
171          int     i;
# Line 231 | Line 232 | main(int argc, char *argv[])
232          if (mres == NULL)               /* check that we got something */
233                  goto userr;
234                                          /* write result to stdout */
234 #ifdef getc_unlocked
235        flockfile(stdout);
236 #endif
235          if (outfmt == DTfromHeader)
236                  outfmt = mres->dtype;
239 #ifdef _WIN32
237          if (outfmt != DTascii)
238 <                _setmode(fileno(stdout), _O_BINARY);
242 < #endif
238 >                SET_FILE_BINARY(stdout);
239          newheader("RADIANCE", stdout);
240          printargs(argc, argv, stdout);
241          if (!rmx_write(mres, outfmt, stdout)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines