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.30 by greg, Wed Aug 14 20:07:20 2019 UTC vs.
Revision 2.31 by greg, Sun Apr 5 15:47:02 2020 UTC

# Line 35 | Line 35 | char  *errfile = NULL;                 /* error output file */
35  
36   int  nproc = 1;                         /* number of processes */
37  
38 < extern char  *formstr();                /* string from format */
38 > extern char  *formstr(int f);           /* string from format */
39 > extern int  setrtoutput(void);          /* set output values */
40   int  inform = 'a';                      /* input format */
41   int  outform = 'a';                     /* output format */
42   char  *outvals = "v";                   /* output specification */
# Line 312 | Line 313 | main(int  argc, char  *argv[])
313   #endif
314          if (outform != 'a')
315                  SET_FILE_BINARY(stdout);
316 +        rval = setrtoutput();
317          readoct(octname = octnm, loadflags, &thescene, NULL);
318          nsceneobjs = nobjects;
319  
# Line 319 | Line 321 | main(int  argc, char  *argv[])
321                  printargs(i, argv, stdout);
322                  printf("SOFTWARE= %s\n", VersionID);
323                  fputnow(stdout);
324 +                if (rval > 0)           /* saved from setrtoutput() call */
325 +                        printf("NCOMP=%d\n", rval);
326                  if ((outform == 'f') | (outform == 'd'))
327                          fputendian(stdout);
328                  fputformat(formstr(outform), stdout);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines