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

Comparing ray/src/hd/rholo.c (file contents):
Revision 3.59 by schorsch, Mon Jun 30 14:59:12 2003 UTC vs.
Revision 3.60 by schorsch, Sun Jul 27 22:12:02 2003 UTC

# Line 278 | Line 278 | initrholo()                    /* get our holodeck running */
278          sigdie(SIGXFSZ, "File size exceeded");
279   #endif
280                                          /* protect holodeck file */
281 <        orig_mode = resfmode(hdlist[0]->fd, ncprocs>0&force>=0 ? 0 : 0444);
281 >        orig_mode = resfmode(hdlist[0]->fd, (ncprocs>0) & (force>=0) ? 0 : 0444);
282          return;
283   memerr:
284          error(SYSTEM, "out of memory in initrholo");
# Line 483 | Line 483 | loadholo()                     /* start loading a holodeck from fname */
483          int     n;
484          int32   nextloc;
485          
486 <        if (ncprocs > 0 & force >= 0)
486 >        if ((ncprocs > 0) & (force >= 0))
487                  fp = fopen(hdkfile, "r+");
488          else
489                  fp = NULL;
# Line 562 | Line 562 | register char  *rn, *fn;
562   {
563          char    *tp, *dp;
564  
565 <        for (tp = NULL, dp = rn; *rn = *fn++; rn++)
565 >        for (tp = NULL, dp = rn; (*rn = *fn++); rn++) {
566                  if (*rn == '/')
567                          dp = rn;
568                  else if (*rn == '.')
569                          tp = rn;
570 +        }
571          if (tp != NULL && tp > dp)
572                  *tp = '\0';
573   }
# Line 609 | Line 610 | int    ec;
610          if (hdlist[0] != NULL) {        /* close holodeck */
611                  if (nprocs > 0)
612                          status = done_rtrace();         /* calls hdsync() */
613 <                if (ncprocs > 0 & force >= 0 && vdef(REPORT)) {
613 >                if ((ncprocs > 0) & (force >= 0) && vdef(REPORT)) {
614                          off_t   fsiz, fuse;
615                          fsiz = hdfilen(hdlist[0]->fd);
616                          fuse = hdfiluse(hdlist[0]->fd, 1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines