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

Comparing ray/src/rt/rc2.c (file contents):
Revision 2.7 by greg, Thu Nov 15 19:41:03 2012 UTC vs.
Revision 2.8 by greg, Wed Aug 7 05:10:09 2013 UTC

# Line 8 | Line 8 | static const char RCSid[] = "$Id$";
8  
9   #include "rcontrib.h"
10   #include "resolu.h"
11 + #include <ctype.h>
12  
13   /* Close output stream and free record */
14   static void
# Line 182 | Line 183 | getostream(const char *ospec, const char *mname, int b
183                  }
184          }
185          if (!noopen && sop->ofp == NULL) {      /* open output stream */
185                long            i;
186                  if (oname[0] == '!')            /* output to command */
187                          sop->ofp = popen(oname+1, "w");
188                  else                            /* else open file */
# Line 212 | Line 212 | getostream(const char *ospec, const char *mname, int b
212                          sop->xr = xres; sop->yr = yres;
213                  }
214                  printresolu(sop->ofp, sop->xr, sop->yr);
215 #if 0
216                                                /* play catch-up */
217                for (i = accumulate > 0 ? lastdone/accumulate : 0; i--; ) {
218                        int     j = sop->reclen;
219                        if (j <= 0) j = 1;
220                        while (j--)
221                                put_contrib(nocontrib, sop->ofp);
222                        if (outfmt == 'a')
223                                putc('\n', sop->ofp);
224                }
225 #endif
215                  if (waitflush > 0)
216                          fflush(sop->ofp);
217          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines