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.54 by greg, Thu May 29 16:26:22 2003 UTC vs.
Revision 3.58 by greg, Sat Jun 21 14:48:54 2003 UTC

# Line 152 | Line 152 | userr:
152   }
153  
154  
155 + void
156   onsig(signo)                            /* fatal signal */
157   int  signo;
158   {
# Line 214 | Line 215 | initrholo()                    /* get our holodeck running */
215                  init_global();
216                                                  /* record disk space limit */
217          if (!vdef(DISKSPACE))
218 <                maxdisk = (1L<<(sizeof(off_t)*8-2)) - 1024;
218 >                maxdisk = ((off_t)1<<(sizeof(off_t)*8-2)) - 1024;
219          else
220                  maxdisk = 1024.*1024.*vflt(DISKSPACE);
221                                                  /* set up memory cache */
# Line 412 | Line 413 | creatholo(gp)                  /* create a holodeck output file */
413   HDGRID  *gp;
414   {
415          extern char     VersionID[];
416 <        int4    lastloc, nextloc;
416 >        int32   lastloc, nextloc;
417          int     n;
418          int     fd;
419          FILE    *fp;
# Line 430 | Line 431 | HDGRID *gp;
431          putw(HOLOMAGIC, fp);            /* put magic number */
432          fd = dup(fileno(fp));
433          fclose(fp);                     /* flush and close stdio stream */
434 <        lastloc = lseek(fd, (off_t)0L, 2);
434 >        lastloc = lseek(fd, (off_t)0, 2);
435          for (n = vdef(SECTION); n--; gp++) {    /* initialize each section */
436                  nextloc = 0L;
437                  write(fd, (char *)&nextloc, sizeof(nextloc));
# Line 478 | Line 479 | loadholo()                     /* start loading a holodeck from fname */
479          FILE    *fp;
480          int     fd;
481          int     n;
482 <        int4    nextloc;
482 >        int32   nextloc;
483          
484          if (ncprocs > 0 & force >= 0)
485                  fp = fopen(hdkfile, "r+");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines