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

Comparing ray/src/rt/rxtrace.cpp (file contents):
Revision 2.3 by greg, Tue Apr 30 23:16:23 2024 UTC vs.
Revision 2.6 by greg, Tue Nov 19 16:28:18 2024 UTC

# Line 68 | Line 68 | static oputf_t  oputo, oputd, oputv, oputV, oputl, opu
68   extern void tranotify(OBJECT obj);
69   static void tabin(RAY *r);
70   static RayReportCall ourtrace;
71 static RayReportCall printvals;
71  
72 < static void  putscolor(COLORV *scol);
72 > RayReportCall printvals;                /* print selected ray values */
73  
74 + void  putscolor(COLORV *scol);          /* convert/print spectral color */
75 +
76   static oputf_t *ray_out[32], *every_out[32];
76 static putf_t *putreal;
77  
78 + putf_t *putreal;                        /* put out real vector */
79 +
80   void
81   quit(                   /* quit program */
82          int  code
# Line 236 | Line 238 | rtrace(                                /* trace rays from stdin or file */
238                  pending |= (n > 1);     // time to flush output?
239                  bool    atZero = IsZeroVec(ivbuf[2*n-1]);
240                  if (pending & (atZero | (n == flushIntvl))) {
241 <                        if (!myRTmanager.FlushQueue())
241 >                        if (myRTmanager.FlushQueue() <= 0)
242                                  error(USER, "ray flush error");
243                          fflush(stdout);
244                          pending = false;
# Line 250 | Line 252 | rtrace(                                /* trace rays from stdin or file */
252          if (vcount)
253                  error(WARNING, feof(inpfp) ? "unexpected EOF on input" :
254                                  "input read error");
255 <        if (fflush(stdout) < 0)
256 <                error(SYSTEM, "write error");
255 >        if (myRTmanager.FlushQueue() < 0 || fflush(stdout) < 0)
256 >                error(SYSTEM, "final flush error");
257          if (fname != NULL) {
258                  fclose(inpfp);
259                  inpfp = NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines