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

Comparing ray/src/gen/gendaymtx.c (file contents):
Revision 2.22 by greg, Fri Oct 30 17:06:34 2015 UTC vs.
Revision 2.25 by greg, Sat Aug 20 15:42:38 2016 UTC

# Line 86 | Line 86 | static const char RCSid[] = "$Id$";
86   #include <string.h>
87   #include <ctype.h>
88   #include "rtmath.h"
89 + #include "rtio.h"
90   #include "resolu.h"
91   #include "platform.h"
92   #include "color.h"
# Line 555 | Line 556 | main(int argc, char *argv[])
556                          break;
557                  case 'f':
558                          for (j = 0; j < ntsteps; j++) {
559 <                                fwrite(mtx_data+mtx_offset, sizeof(float), 3,
559 >                                putbinary(mtx_data+mtx_offset, sizeof(float), 3,
560                                                  stdout);
561                                  mtx_offset += 3*nskypatch;
562                          }
# Line 566 | Line 567 | main(int argc, char *argv[])
567                                  ment[0] = mtx_data[mtx_offset];
568                                  ment[1] = mtx_data[mtx_offset+1];
569                                  ment[2] = mtx_data[mtx_offset+2];
570 <                                fwrite(ment, sizeof(double), 3, stdout);
570 >                                putbinary(ment, sizeof(double), 3, stdout);
571                                  mtx_offset += 3*nskypatch;
572                          }
573                          break;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines