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.5 by greg, Thu Sep 18 23:20:12 2014 UTC vs.
Revision 2.7 by greg, Fri Jan 23 01:03:17 2015 UTC

# Line 22 | Line 22 | typedef struct {
22          int             op;                     /* '*' or '+' */
23   } ROPERAT;                              /* matrix operation */
24  
25 int     outfmt = DTfromHeader;          /* output format */
25   int     verbose = 0;                    /* verbose reporting? */
26  
27   static void
# Line 165 | Line 164 | get_factors(double da[], int n, char *av[])
164   int
165   main(int argc, char *argv[])
166   {
167 +        int     outfmt = DTfromHeader;
168          RMATRIX *mres = NULL;
169          ROPERAT op;
170          int     i;
# Line 234 | Line 234 | main(int argc, char *argv[])
234   #ifdef getc_unlocked
235          flockfile(stdout);
236   #endif
237 +        if (outfmt == DTfromHeader)
238 +                outfmt = mres->dtype;
239   #ifdef _WIN32
240          if (outfmt != DTascii)
241                  _setmode(fileno(stdout), _O_BINARY);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines