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

Comparing ray/src/hd/holofile.c (file contents):
Revision 3.17 by gregl, Thu Jan 1 13:00:14 1998 UTC vs.
Revision 3.18 by gregl, Thu Jan 1 16:40:38 1998 UTC

# Line 429 | Line 429 | register int   i;
429          if (hp->bl[i] == NULL || (nrays = hp->bl[i]->nrm) == hp->bi[i].nrd)
430                  return(0);
431                                          /* locate fragment */
432 <        if (hp->fd >= nhdfragls || !hdfragl[hp->fd].nlinks) /* untracked */
433 <                hp->bi[i].fo = lseek(hp->fd, 0L, 2);
434 <
435 <        else if (hp->bi[i].fo + hp->bi[i].nrd*sizeof(RAYVAL) ==
432 >        if (hp->bi[i].fo + hp->bi[i].nrd*sizeof(RAYVAL) ==
433                          hdfragl[hp->fd].flen)           /* EOF special case */
434                  hdfragl[hp->fd].flen = (nfo=hp->bi[i].fo) + nrays*sizeof(RAYVAL);
435  
# Line 512 | Line 509 | register int   i;
509                  n = hp->bl[i]->nrm * sizeof(RAYVAL);
510                  if (write(hp->fd, (char *)hdbray(hp->bl[i]), n) != n) {
511                          hdfragl[hp->fd].writerr++;
512 <                        hdsync(hp, 0);          /* sync directory */
512 >                        hdsync(NULL, 0);        /* sync directories */
513                          error(SYSTEM, "write error in hdsyncbeam");
514                  }
515          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines