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

Comparing ray/src/rt/rpmain.c (file contents):
Revision 2.4 by schorsch, Thu Jun 26 00:58:10 2003 UTC vs.
Revision 2.7 by schorsch, Mon Jul 21 22:30:19 2003 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9  
10   #include  <sys/types.h>
11   #include  <signal.h>
12 #ifdef _WIN32
13  #include <process.h> /* getpid */
14 #endif
12  
13   #include  "platform.h"
14 + #include  "rtprocess.h" /* getpid() */
15   #include  "ray.h"
16   #include  "source.h"
17   #include  "ambient.h"
# Line 292 | Line 290 | char  *argv[];
290          if (loadflags & IO_INFO) {      /* print header */
291                  printargs(i, argv, stdout);
292                  printf("SOFTWARE= %s\n", VersionID);
295                fputnow(stdout);
293          }
294  
295          marksources();                  /* find and mark sources */
# Line 321 | Line 318 | char  *argv[];
318                  }
319          }
320   runagain:
321 <        if (persist)
321 >        if (persist) {
322                  if (outfile == NULL)                    /* if out to stdout */
323                          dupheader();                    /* send header */
324                  else                                    /* if out to file */
325                          duped1 = dup(fileno(stdout));   /* hang onto pipe */
326 +        }
327   #endif
328                                          /* batch render picture(s) */
329          rpict(seqstart, outfile, zfile, recover);
# Line 426 | Line 424 | char  *msg;
424   void
425   printdefaults()                 /* print default values to stdout */
426   {
429        register char  *cp;
430
427          printf("-vt%c\t\t\t\t# view type %s\n", ourview.type,
428                          ourview.type==VT_PER ? "perspective" :
429                          ourview.type==VT_PAR ? "parallel" :

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines