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

Comparing ray/src/util/rad.c (file contents):
Revision 2.81 by schorsch, Mon Sep 12 14:40:13 2005 UTC vs.
Revision 2.83 by greg, Tue Mar 11 02:21:47 2008 UTC

# Line 1013 | Line 1013 | specview(                              /* get proper view spec from vs */
1013                  zpos = -1; vs++;
1014          }
1015          viewtype = 'v';
1016 <        if((*vs == 'v') | (*vs == 'l') | (*vs == 'a') | (*vs == 'h') | (*vs == 'c'))
1016 >        if ((*vs == 'v') | (*vs == 'l') | (*vs == 'a') |
1017 >                        (*vs == 'h') | (*vs == 'c') | (*vs == 's'))
1018                  viewtype = *vs++;
1019          cp = viewopts;
1020          if ((!*vs || isspace(*vs)) && (xpos|ypos|zpos)) {       /* got one! */
# Line 1320 | Line 1321 | rpict(                         /* run rpict and pfilt for each view */
1321                                          zopt, oct1name, rawfile);
1322                          if (pfile != NULL && inchild()) {
1323                                                  /* rpict persistent mode */
1324 <                                if (!silent) {
1324 >                                if (!silent)
1325                                          printf("\t%s\n", combuf);
1326 <                                        fflush(stdout);
1326 <                                }
1326 >                                fflush(stdout);
1327                                  sprintf(combuf, "rpict%s %s %s%s%s %s > %s",
1328                                                  rep, rppopt, res, po, opts,
1329                                                  oct1name, rawfile);
1330                                fflush(stdout);
1330                                  fp = popen(combuf, "w");
1331                                  if (fp == NULL)
1332                                          goto rperror;
# Line 1408 | Line 1407 | runcom(                        /* run command */
1407                  printf("\t%s\n", cs);
1408          if (!nprocs)
1409                  return(0);
1410 <        fflush(stdout);         /* flush output and pass to shell */
1410 >        fflush(NULL);           /* flush output and pass to shell */
1411          return(system(cs));
1412   }
1413  
# Line 1455 | Line 1454 | next_process(void)                     /* fork the next process (max. np
1454          }
1455          if (children_running >= nprocs)
1456                  wait_process(0);        /* wait for someone to finish */
1457 <        fflush(stdout);
1457 >        fflush(NULL);                   /* flush output */
1458          child_pid = fork();             /* split process */
1459          if (child_pid == 0) {           /* we're the child */
1460                  children_running = -1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines