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

Comparing ray/src/hd/rhd_ctab.c (file contents):
Revision 3.6 by greg, Fri May 20 02:06:39 2011 UTC vs.
Revision 3.7 by greg, Fri Oct 5 19:19:16 2018 UTC

# Line 57 | Line 57 | static int split(int box[3][2]);
57  
58  
59  
60 < extern int
60 > int
61   new_ctab(               /* start new color table with max ncolors */
62          int     ncolors
63   )
# Line 88 | Line 88 | new_ctab(              /* start new color table with max ncolors *
88   }
89  
90  
91 < extern int
91 > int
92   get_pixel(      /* get pixel for color */
93          uby8    rgb[3],
94          void    (*set_pixel)(int h, int r, int g, int b)
# Line 96 | Line 96 | get_pixel(     /* get pixel for color */
96   {
97          int     r, g, b;
98          int     cv[3];
99 <        register CNODE  *tp;
100 <        register int    h;
99 >        CNODE   *tp;
100 >        int     h;
101                                                  /* get desired color */
102          r = rgb[RED];
103          g = rgb[GRN];
# Line 148 | Line 148 | get_pixel(     /* get pixel for color */
148  
149   static void
150   cut(            /* partition color space */
151 <        register CNODE  *tree,
151 >        CNODE   *tree,
152          int     level,
153 <        register int    box[3][2],
153 >        int     box[3][2],
154          int     c0,
155          int     c1
156   )
# Line 176 | Line 176 | cut(           /* partition color space */
176  
177   static int
178   split(                          /* find median cut for box */
179 <        register int    box[3][2]
179 >        int     box[3][2]
180   )
181   {
182   #define c0      r
183 <        register int    r, g, b;
183 >        int     r, g, b;
184          int     pri;
185          long    t[HMAX], med;
186                                          /* find dominant axis */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines