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

Comparing ray/src/hd/rhdisp2.c (file contents):
Revision 3.37 by schorsch, Thu Jan 1 11:21:55 2004 UTC vs.
Revision 3.38 by greg, Fri Oct 5 19:19:16 2018 UTC

# Line 56 | Line 56 | cbeamcmp(      /* compare two cbeam entries for sort: keep
56          const void      *cb2
57   )
58   {
59 <        register int    c;
59 >        int     c;
60  
61          if ((c = ((PACKHEAD*)cb1)->bi - ((PACKHEAD*)cb2)->bi))  /* sort on beam index first */
62                  return(c);
# Line 70 | Line 70 | cbeamcmp2(     /* compare two cbeam entries for sort: no o
70          const void      *cb2
71   )
72   {
73 <        register int    c;
73 >        int     c;
74  
75          if (!((PACKHEAD*)cb1)->nr)                      /* put orphans at the end, unsorted */
76                  return(((PACKHEAD*)cb2)->nr);
# Line 89 | Line 89 | findcbeam(     /* find the specified beam in our sorted li
89   )
90   {
91          PACKHEAD        cb;
92 <        register PACKHEAD       *p;
92 >        PACKHEAD        *p;
93  
94          if (ncbeams <= 0)
95                  return(-1);
# Line 104 | Line 104 | findcbeam(     /* find the specified beam in our sorted li
104  
105   static int
106   getcbeam(       /* get the specified beam, allocating as necessary */
107 <        register int    hd,
107 >        int     hd,
108          int     bi
109   )
110   {
111 <        register int    n;
111 >        int     n;
112                                  /* first, look in sorted list */
113          if ((n = findcbeam(hd, bi)) >= 0)
114                  return(n);
# Line 132 | Line 132 | cbeamsort(     /* sort our beam list, possibly turning out
132          int     adopt
133   )
134   {
135 <        register int    i;
135 >        int     i;
136  
137          if (!(ncbeams += xcbeams))
138                  return;
# Line 149 | Line 149 | cbeamsort(     /* sort our beam list, possibly turning out
149   }
150  
151  
152 < extern void
152 > void
153   beam_init(              /* clear beam list for new view(s) */
154          int     fresh
155   )
156   {
157 <        register int    i;
157 >        int     i;
158  
159          if (fresh)                      /* discard old beams? */
160                  ncbeams = xcbeams = 0;
# Line 165 | Line 165 | beam_init(             /* clear beam list for new view(s) */
165   }
166  
167  
168 < extern int16 *
168 > int16 *
169   beam_view(              /* add beam view (if advisable) */
170          VIEW    *vn,
171          int     hr,
# Line 175 | Line 175 | beam_view(             /* add beam view (if advisable) */
175          int16   *slist;
176          BEAMLIST        blist;
177          double  eravg, d;
178 <        register HOLO   *hp;
179 <        register int    i, n;
178 >        HOLO    *hp;
179 >        int     i, n;
180                                          /* compute beams for view */
181          slist = viewbeams(vn, hr, vr, &blist);
182          if (*slist < 0) {
# Line 216 | Line 216 | beam_view(             /* add beam view (if advisable) */
216   }
217  
218  
219 < extern int
219 > int
220   beam_sync(                      /* update beam list on server */
221          int     all
222   )
# Line 240 | Line 240 | beam_sync(                     /* update beam list on server */
240   }
241  
242  
243 < extern void
243 > void
244   gridlines(                      /* run through holodeck section grid lines */
245          void    (*f)(FVECT wp[2])
246   )
247   {
248 <        register int    hd, w, i;
248 >        int     hd, w, i;
249          int     g0, g1;
250          FVECT   wp[2], mov;
251          double  d;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines