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

Comparing ray/src/gen/mkillum.c (file contents):
Revision 2.12 by greg, Tue Mar 11 19:29:05 2003 UTC vs.
Revision 2.14 by schorsch, Thu Jun 26 00:58:09 2003 UTC

# Line 5 | Line 5 | static const char RCSid[] = "$Id$";
5   * Make illum sources for optimizing rendering process
6   */
7  
8 #include  "mkillum.h"
9
8   #include  <signal.h>
11
9   #include  <ctype.h>
10 + #include  <stdio.h>
11  
12 + #include  "standard.h"
13 + #include  "platform.h"
14 + #include  "mkillum.h"
15 +
16                                  /* default parameters */
17   #define  SAMPDENS       48              /* points per projected steradian */
18   #define  NSAMPS         32              /* samples per point */
# Line 136 | Line 138 | int  status;
138   {
139          int     rtstat;
140  
141 <        rtstat = close_process(rt.pd);
141 >        rtstat = close_process(&(rt.pd));
142          if (status == 0)
143                  if (rtstat < 0)
144                          error(WARNING,
# Line 156 | Line 158 | init()                         /* start rtrace and set up buffers */
158          ofun[OBJ_SPHERE].funp = o_sphere;
159          ofun[OBJ_RING].funp = o_ring;
160                                          /* set up signal handling */
161 + #ifdef SIGPIPE /* not present on Windows */
162          signal(SIGPIPE, quit);
163 + #endif
164                                          /* start rtrace process */
165          errno = 0;
166 <        maxbytes = open_process(rt.pd, rtargv);
166 >        maxbytes = open_process(&(rt.pd), rtargv);
167          if (maxbytes == 0) {
168                  eputs(rtargv[0]);
169                  eputs(": command not found\n");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines