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.13 by greg, Thu Sep 30 17:02:00 2010 UTC vs.
Revision 3.15 by greg, Mon Oct 21 18:19:32 2019 UTC

# Line 52 | Line 52 | gethdinfo(             /* get information on holodeck */
52          off_t   nextloc, fsiz;
53          int     n;
54                                          /* open holodeck file */
55 <        if ((fp = fopen(fname, "r")) == NULL) {
55 >        if ((fp = fopen(fname, "rb")) == NULL) {
56                  sprintf(errmsg, "cannot open \"%s\"", fname);
57                  error(SYSTEM, errmsg);
58          }
# Line 88 | 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 97 | 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