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

Comparing ray/src/hd/genrhgrid.c (file contents):
Revision 3.8 by schorsch, Thu Jan 1 11:21:55 2004 UTC vs.
Revision 3.11 by greg, Fri Jun 6 19:11:21 2025 UTC

# Line 6 | Line 6 | static const char      RCSid[] = "$Id$";
6   */
7  
8   #include <stdio.h>
9 <
9 > #include "paths.h"
10   #include "platform.h"
11   #include "resolu.h"
12   #include "holo.h"
13  
14 char    *progname;              /* global argv[0] */
15
14   char    *mat, *name;            /* material and object id */
15   double  rad;                    /* grid line radius */
16  
# Line 29 | Line 27 | main(
27   {
28          int     sect;
29  
30 <        progname = argv[0];
30 >        fixargv0(argv[0]);
31          if ((argc < 5) | (argc > 6))
32                  goto userr;
33          mat = argv[1];
# Line 59 | Line 57 | gridsect(              /* get specified section(s) and print grids
57          int32   nextloc;
58          int     n;
59                                          /* open holodeck file */
60 <        if ((fp = fopen(fname, "r")) == NULL) {
60 >        if ((fp = fopen(fname, "rb")) == NULL) {
61                  sprintf(errmsg, "cannot open \"%s\"", fname);
62                  error(SYSTEM, errmsg);
63          }
# Line 85 | Line 83 | gridsect(              /* get specified section(s) and print grids
83  
84   void
85   putgrid(                        /* run through holodeck section grid lines */
86 <        register HOLO   *hp
86 >        HOLO    *hp
87   )
88   {
89 <        register int    w, i;
89 >        int     w, i;
90          int     g0, g1;
91          FVECT   wp[2], mov;
92          double  d;
# Line 135 | Line 133 | putgrid(                       /* run through holodeck section grid lines
133  
134   void
135   putline(                /* put out a line */
136 <        register FVECT  wp[2]
136 >        FVECT   wp[2]
137   )
138   {
139          static int      cnt = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines