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

Comparing ray/src/rt/colortab.c (file contents):
Revision 2.10 by greg, Fri May 20 02:06:39 2011 UTC vs.
Revision 2.11 by greg, Tue Jul 8 18:24:59 2014 UTC

# Line 93 | Line 93 | int    ncolors;
93   }
94  
95  
96 < extern int
96 > int
97   get_pixel(      /* get pixel for color */
98          COLOR   col,
99          dr_newcolrf_t *newcolr
# Line 101 | Line 101 | get_pixel(     /* get pixel for color */
101   {
102          int     r, g, b;
103          int     cv[3];
104 <        register CNODE  *tp;
105 <        register int    h;
104 >        CNODE   *tp;
105 >        int     h;
106                                                  /* map color */
107          r = map_col(col,RED);
108          g = map_col(col,GRN);
# Line 152 | Line 152 | void
152   make_gmap(gam)                  /* make gamma correction map */
153   double  gam;
154   {
155 <        register int    i;
155 >        int     i;
156          
157          for (i = 0; i < 256; i++)
158                  clrmap[RED][i] =
# Line 184 | Line 184 | COLOR  col;
184  
185   static void
186   cut(tree, level, box, c0, c1)           /* partition color space */
187 < register CNODE  *tree;
187 > CNODE   *tree;
188   int     level;
189 < register int    box[3][2];
189 > int     box[3][2];
190   int     c0, c1;
191   {
192          int     kb[3][2];
# Line 210 | Line 210 | int    c0, c1;
210  
211   static int
212   split(box)                              /* find median cut for box */
213 < register int    box[3][2];
213 > int     box[3][2];
214   {
215   #define c0      r
216 <        register int    r, g, b;
216 >        int     r, g, b;
217          int     pri;
218          long    t[HMAX], med;
219                                          /* find dominant axis */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines