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

Comparing ray/src/rt/rcmain.c (file contents):
Revision 2.16 by greg, Wed Jun 1 03:00:06 2016 UTC vs.
Revision 2.20 by greg, Tue Feb 16 20:06:06 2021 UTC

# Line 43 | Line 43 | int    using_stdout = 0;               /* are we using stdout? */
43   int     imm_irrad = 0;                  /* compute immediate irradiance? */
44   int     lim_dist = 0;                   /* limit distance? */
45  
46 < const char      *modname[MAXMODLIST];   /* ordered modifier name list */
47 < int             nmods = 0;              /* number of modifiers */
46 > int     report_intvl = 0;               /* reporting interval (seconds) */
47  
48 + char    **modname = NULL;               /* ordered modifier name list */
49 + int     nmods = 0;                      /* number of modifiers */
50 + int     modasiz = 0;                    /* allocated modifier array size */
51 +
52   void    (*addobjnotify[8])() = {ambnotify, NULL};
53  
54 < char    RCCONTEXT[] = "RC";             /* our special evaluation context */
54 > char    RCCONTEXT[] = "RC.";            /* our special evaluation context */
55  
56  
57   static void
# Line 180 | Line 183 | main(int argc, char *argv[])
183          progname = argv[0] = fixargv0(argv[0]);
184          gargv = argv;
185          gargc = argc;
186 + #if defined(_WIN32) || defined(_WIN64)
187 +        _setmaxstdio(2048);             /* increase file limit to maximum */
188 + #endif
189                                          /* initialize calcomp routines early */
190          initfunc();
191          setcontext(RCCONTEXT);
# Line 291 | Line 297 | main(int argc, char *argv[])
297                  case 'M':                       /* modifier file */
298                          check(2,"s");
299                          addmodfile(argv[++i], curout, prms, binval, bincnt);
300 +                        break;
301 +                case 't':                       /* reporting interval */
302 +                        check(2,"i");
303 +                        report_intvl = atoi(argv[++i]);
304                          break;
305                  default:
306                          goto badopt;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines