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

Comparing ray/src/hd/rhcopy.c (file contents):
Revision 3.30 by greg, Thu Aug 2 18:33:42 2018 UTC vs.
Revision 3.31 by greg, Fri Oct 5 19:19:16 2018 UTC

# Line 97 | Line 97 | userr:
97  
98   static int
99   holheadline(            /* check holodeck header line */
100 <        register char   *s,
100 >        char    *s,
101          void    *vhf
102   )
103   {
# Line 174 | Line 174 | addray(                /* add a ray to our output holodeck */
174   )
175   {
176          int     sn, bi, n;
177 <        register HOLO   *hp;
177 >        HOLO    *hp;
178          GCOORD  gc[2];
179          uby8    rr[2][2];
180          BEAM    *bp;
181          double  d0, d1;
182          unsigned        dc;
183 <        register RAYVAL *rv;
183 >        RAYVAL  *rv;
184                                  /* check each output section */
185          for (sn = noutsects; sn--; ) {
186                  hp = hdlist[sn];
# Line 223 | Line 223 | bpcmp(                 /* compare beam positions on disk */
223          const void      *b2p
224   )
225   {
226 <        register off_t  pdif = beamdir[*(int*)b1p].fo - beamdir[*(int*)b2p].fo;
226 >        off_t   pdif = beamdir[*(int*)b1p].fo - beamdir[*(int*)b2p].fo;
227  
228          if (pdif > 0L) return(1);
229          if (pdif < 0L) return(-1);
# Line 241 | Line 241 | addclump(              /* transfer the given clump and free */
241          FVECT   ro, rd;
242          double  d;
243          int     i;
244 <        register int    k;
245 <        register BEAM   *bp;
244 >        int     k;
245 >        BEAM    *bp;
246                                          /* sort based on file position */
247          beamdir = hp->bi;
248          qsort((char *)bq, nb, sizeof(*bq), bpcmp);
# Line 334 | Line 334 | addpicz(               /* add a picture + depth-buffer */
334          double  aftd;
335          COLOR   ctmp;
336          int     j;
337 <        register int    i;
337 >        int     i;
338                                  /* open files */
339          if ((pfp = fopen(pcf, "r")) == NULL) {
340                  sprintf(errmsg, "cannot open picture file \"%s\"", pcf);
# Line 427 | Line 427 | addpicz(               /* add a picture + depth-buffer */
427  
428   void
429   eputs(                  /* put error message to stderr */
430 <        register char  *s
430 >        char  *s
431   )
432   {
433          static int  midline = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines