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.13 by schorsch, Sun Jun 8 12:03:10 2003 UTC vs.
Revision 2.15 by greg, Fri Jun 27 22:27:45 2003 UTC

# Line 7 | Line 7 | static const char RCSid[] = "$Id$";
7  
8   #include  <signal.h>
9   #include  <ctype.h>
10 #include  <stdio.h>
10  
12 #include  "platform.h"
11   #include  "mkillum.h"
12 + #include  "platform.h"
13  
14                                  /* default parameters */
15   #define  SAMPDENS       48              /* points per projected steradian */
# Line 137 | Line 136 | int  status;
136   {
137          int     rtstat;
138  
139 <        rtstat = close_process(rt.pd);
139 >        rtstat = close_process(&(rt.pd));
140          if (status == 0)
141                  if (rtstat < 0)
142                          error(WARNING,
# Line 157 | Line 156 | init()                         /* start rtrace and set up buffers */
156          ofun[OBJ_SPHERE].funp = o_sphere;
157          ofun[OBJ_RING].funp = o_ring;
158                                          /* set up signal handling */
159 < #ifndef _WIN32 /* XXX what do we use instead? */
159 > #ifdef SIGPIPE /* not present on Windows */
160          signal(SIGPIPE, quit);
161   #endif
162                                          /* start rtrace process */
163          errno = 0;
164 <        maxbytes = open_process(rt.pd, rtargv);
164 >        maxbytes = open_process(&(rt.pd), rtargv);
165          if (maxbytes == 0) {
166                  eputs(rtargv[0]);
167                  eputs(": command not found\n");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines