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.11 by greg, Sat Feb 22 02:07:24 2003 UTC vs.
Revision 2.13 by schorsch, Sun Jun 8 12:03:10 2003 UTC

# Line 1 | Line 1
1   #ifndef lint
2 < static const char       RCSid[] = "$Id$";
2 > static const char RCSid[] = "$Id$";
3   #endif
4   /*
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  "platform.h"
13 + #include  "mkillum.h"
14 +
15                                  /* default parameters */
16   #define  SAMPDENS       48              /* points per projected steradian */
17   #define  NSAMPS         32              /* samples per point */
# Line 156 | Line 157 | init()                         /* start rtrace and set up buffers */
157          ofun[OBJ_SPHERE].funp = o_sphere;
158          ofun[OBJ_RING].funp = o_ring;
159                                          /* set up signal handling */
160 + #ifndef _WIN32 /* XXX what do we use instead? */
161          signal(SIGPIPE, quit);
162 + #endif
163                                          /* start rtrace process */
164          errno = 0;
165          maxbytes = open_process(rt.pd, rtargv);
# Line 444 | Line 447 | char  *nm;
447          if (fgetword(str, MAXSTR, fp) == NULL)
448                  goto readerr;
449                                          /* is it an alias? */
450 <        if (!strcmp(str, ALIASID)) {
450 >        if (!strcmp(str, ALIASKEY)) {
451                  if (fgetword(str, MAXSTR, fp) == NULL)
452                          goto readerr;
453 <                printf("\n%s %s %s", thisillum.altmat, ALIASID, str);
453 >                printf("\n%s %s %s", thisillum.altmat, ALIASKEY, str);
454                  if (fgetword(str, MAXSTR, fp) == NULL)
455                          goto readerr;
456                  printf("\t%s\n", str);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines