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

Comparing ray/src/util/glareval.c (file contents):
Revision 2.18 by greg, Thu May 14 20:58:03 2020 UTC vs.
Revision 2.19 by greg, Tue Nov 29 20:45:21 2022 UTC

# Line 70 | Line 70 | claimscan(                     /* claim scanline from buffers */
70   {
71          int     hi = shash(y);
72          SCAN    *slast;
73 <        register SCAN   *sl;
73 >        SCAN    *sl;
74  
75          for (sl = hashtab[hi]; sl != NULL; sl = sl->next)
76                  if (sl->y == y)                         /* active scanline */
# Line 97 | Line 97 | getpictscan(                   /* get picture scanline */
97          int     y
98   )
99   {
100 <        register SCAN   *sl;
101 <        register int    i;
100 >        SCAN    *sl;
101 >        int     i;
102                                          /* first check our buffers */
103          sl = claimscan(y);
104          if (sl == NULL)
# Line 184 | Line 184 | pict_val(                      /* find picture value for view direction *
184   }
185  
186  
187 < extern double
187 > double
188   getviewpix(             /* compute single view pixel */
189          int     vh,
190          int     vv
# Line 214 | Line 214 | getviewpix(            /* compute single view pixel */
214   }
215  
216  
217 < extern void
217 > void
218   getviewspan(            /* compute a span of view pixels */
219          int     vv,
220          float   *vb
221   )
222   {
223          float   rt_buf[6*MAXPIX];       /* rtrace send/receive buffer */
224 <        register int    n;              /* number of pixels in buffer */
224 >        int     n;              /* number of pixels in buffer */
225          short   buf_vh[MAXPIX];         /* pixel positions */
226          FVECT   dir;
227 <        register int    vh;
227 >        int     vh;
228  
229   #ifdef DEBUG
230          if (verbose)
# Line 311 | Line 311 | getexpos(                      /* get exposure from header line */
311   }
312  
313  
314 < extern void
314 > void
315   open_pict(                      /* open picture file */
316          char    *fn
317   )
# Line 331 | Line 331 | open_pict(                     /* open picture file */
331   }
332  
333  
334 < extern void
334 > void
335   close_pict(void)                        /* done with picture */
336   {
337          if (pictfp == NULL)
# Line 342 | Line 342 | close_pict(void)                       /* done with picture */
342   }
343  
344  
345 < extern void
345 > void
346   fork_rtrace(                    /* open pipe and start rtrace */
347          char    *av[]
348   )
# Line 365 | Line 365 | fork_rtrace(                   /* open pipe and start rtrace */
365   }
366  
367  
368 < extern void
368 > void
369   done_rtrace(void)                       /* wait for rtrace to finish */
370   {
371          int     status;
# Line 385 | Line 385 | scanretire(void)                       /* retire old scanlines to free lis
385          SCAN    *sold[NRETIRE];
386          int     n;
387          int     h;
388 <        register SCAN   *sl;
389 <        register int    i;
388 >        SCAN    *sl;
389 >        int     i;
390                                          /* grab the NRETIRE oldest scanlines */
391          sold[n = 0] = NULL;
392          for (h = 0; h < HSIZE; h++)
# Line 427 | Line 427 | static void
427   initscans(void)                         /* initialize scanline buffers */
428   {
429          int     scansize;
430 <        register SCAN   *ptr;
431 <        register int    i;
430 >        SCAN    *ptr;
431 >        int     i;
432                                          /* initialize positions */
433          scanpos = (long *)bmalloc(pysiz*sizeof(long));
434          if (scanpos == NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines