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.19 by greg, Wed Sep 9 21:28:19 2020 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 + int     report_intvl = 0;               /* reporting interval (seconds) */
47 +
48   const char      *modname[MAXMODLIST];   /* ordered modifier name list */
49   int             nmods = 0;              /* number of modifiers */
50  
51   void    (*addobjnotify[8])() = {ambnotify, NULL};
52  
53 < char    RCCONTEXT[] = "RC";             /* our special evaluation context */
53 > char    RCCONTEXT[] = "RC.";            /* our special evaluation context */
54  
55  
56   static void
# Line 180 | Line 182 | main(int argc, char *argv[])
182          progname = argv[0] = fixargv0(argv[0]);
183          gargv = argv;
184          gargc = argc;
185 + #if defined(_WIN32) || defined(_WIN64)
186 +        _setmaxstdio(2048);             /* increase file limit to maximum */
187 + #endif
188                                          /* initialize calcomp routines early */
189          initfunc();
190          setcontext(RCCONTEXT);
# Line 292 | Line 297 | main(int argc, char *argv[])
297                          check(2,"s");
298                          addmodfile(argv[++i], curout, prms, binval, bincnt);
299                          break;
300 +                case 't':                       /* reporting interval */
301 +                        check(2,"i");
302 +                        report_intvl = atoi(argv[++i]);
303 +                        break;
304                  default:
305                          goto badopt;
306                  }
# Line 363 | Line 372 | main(int argc, char *argv[])
372  
373   badopt:
374          fprintf(stderr,
375 < "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",
375 > "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",
376                          progname);
377          sprintf(errmsg, "command line error at '%s'", argv[i]);
378          error(USER, errmsg);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines