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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.48 by greg, Tue Jun 21 15:06:50 2005 UTC vs.
Revision 2.50 by greg, Fri Oct 7 03:45:14 2005 UTC

# Line 29 | Line 29 | static const char      RCSid[] = "$Id$";
29   #include  "source.h"
30   #include  "otypes.h"
31   #include  "resolu.h"
32 + #include  "random.h"
33  
34   CUBE  thescene;                         /* our scene */
35   OBJECT  nsceneobjs;                     /* number of objects in our scene */
# Line 214 | Line 215 | rtrace(                                /* trace rays from file */
215                  if (vcount && !--vcount)                /* check for end */
216                          break;
217          }
218 <        fflush(stdout);
218 >        if (fflush(stdout) < 0)
219 >                error(SYSTEM, "write error");
220          if (vcount)
221                  error(USER, "unexpected EOF on input");
222          if (fname != NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines