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

Comparing ray/src/rt/rtmain.c (file contents):
Revision 2.52 by greg, Fri Apr 5 16:43:33 2024 UTC vs.
Revision 2.56 by greg, Wed Oct 30 16:47:03 2024 UTC

# Line 21 | Line 21 | static const char      RCSid[] = "$Id$";
21  
22   extern char     *progname;              /* global argv[0] */
23  
24 extern char     *shm_boundary;          /* boundary of shared memory */
25
24                                          /* persistent processes define */
25   #ifdef  F_SETLKW
26   #define  PERSIST        1               /* normal persist */
# Line 59 | Line 57 | extern void  tranotify(OBJECT obj);
57   char  *tralist[MAXMODLIST];             /* list of modifers to trace (or no) */
58   int  traincl = -1;                      /* include == 1, exclude == 0 */
59  
60 < double  (*sens_curve)(SCOLOR scol) = NULL;      /* spectral conversion for 1-channel */
60 > double  (*sens_curve)(const SCOLOR scol) = NULL;        /* spectral conversion for 1-channel */
61   double  out_scalefactor = 1;            /* output calibration scale factor */
62   RGBPRIMP  out_prims = stdprims;         /* output color primitives (NULL if spectral) */
63   static RGBPRIMS  our_prims;             /* private output color primitives */
# Line 453 | Line 451 | main(int  argc, char  *argv[])
451                  dup2(duped1, fileno(stdout));
452                  close(duped1);
453                  if (persist == PARALLEL) {      /* multiprocessing */
454 <                        preload_objs();         /* preload scene */
457 <                        shm_boundary = (char *)malloc(16);
458 <                        strcpy(shm_boundary, "SHM_BOUNDARY");
454 >                        cow_memshare();         /* preloads scene */
455                          while ((rval=fork()) == 0) {    /* keep on forkin' */
456                                  pflock(1);
457                                  pfhold();
# Line 512 | Line 508 | wputs(                         /* warning output function */
508   )
509   {
510          int  lasterrno = errno;
511 +        if (erract[WARNING].pf == NULL)
512 +                return;         /* called by calcomp or someone */
513          eputs(s);
514          errno = lasterrno;
515   }
# Line 632 | Line 630 | printdefaults(void)                    /* print default values to stdou
630                                  out_prims[GRN][0], out_prims[GRN][1],
631                                  out_prims[BLU][0], out_prims[BLU][1],
632                                  out_prims[WHT][0], out_prims[WHT][1]);
633 <        if (NCSAMP > 3)
633 >        if ((sens_curve == NULL) & (NCSAMP > 3))
634                  printf(out_prims != NULL ? "-co-\t\t\t\t# output tristimulus colors\n" :
635                                  "-co+\t\t\t\t# output spectral values\n");
636          print_rdefaults();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines