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.15 by schorsch, Thu Mar 10 18:25:46 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 292 | Line 298 | main(int argc, char *argv[])
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;
307                  }
# Line 363 | Line 373 | main(int argc, char *argv[])
373  
374   badopt:
375          fprintf(stderr,
376 < "Usage: %s [-n nprocs][-V][-r][-e expr][-f source][-o ospec][-p p1=V1,p2=V2][-b binv][-bn N] {-m mod | -M file} [rtrace options] octree\n",
376 > "Usage: %s [-n nprocs][-V][-c count][-r][-e expr][-f source][-o ospec][-p p1=V1,p2=V2][-b binv][-bn N] {-m mod | -M file} [rtrace options] octree\n",
377                          progname);
378          sprintf(errmsg, "command line error at '%s'", argv[i]);
379          error(USER, errmsg);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines