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

Comparing ray/src/hd/rhinfo.c (file contents):
Revision 3.12 by greg, Thu Sep 30 14:45:10 2010 UTC vs.
Revision 3.14 by greg, Fri Oct 5 19:19:16 2018 UTC

# Line 49 | Line 49 | gethdinfo(             /* get information on holodeck */
49          FILE    *fp;
50          HOLO    *hdsect;
51          int     fd;
52 <        int32   nextloc;
53 <        off_t   fsiz;
52 >        off_t   nextloc, fsiz;
53          int     n;
54                                          /* open holodeck file */
55          if ((fp = fopen(fname, "r")) == NULL) {
# Line 65 | Line 64 | gethdinfo(             /* get information on holodeck */
64          fd = dup(fileno(fp));                   /* dup file handle */
65          nextloc = ftell(fp);                    /* get stdio position */
66          fclose(fp);                             /* done with stdio */
67 <        for (n = 0; nextloc > 0L; n++) {        /* get the section(s) */
68 <                lseek(fd, (off_t)nextloc, SEEK_SET);
67 >        for (n = 0; nextloc > 0; n++) {         /* get the section(s) */
68 >                lseek(fd, nextloc, SEEK_SET);
69                  read(fd, (char *)&nextloc, sizeof(nextloc));
70                  fprintf(fout, "Section %d:\n", n);
71                  hdsect = hdinit(fd, NULL);      /* load section directory */
# Line 89 | Line 88 | gethdinfo(             /* get information on holodeck */
88  
89   static void
90   psectstats(             /* print statistical information for section */
91 <        register HOLO   *hp,
91 >        HOLO    *hp,
92          FILE    *fp
93   )
94   {
# Line 98 | Line 97 | psectstats(            /* print statistical information for sect
97          FVECT   vt;
98          double  sqrtmaxp;
99          int     bmin, bmax, cnt;
100 <        register int    i;
100 >        int     i;
101  
102          fcross(vt, hp->xv[0], hp->xv[1]);
103          fprintf(fp, "\tWorld volume:            %g\n", fabs(DOT(vt,hp->xv[2])));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines