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

Comparing ray/src/common/objset.c (file contents):
Revision 1.6 by greg, Fri Dec 14 10:06:33 1990 UTC vs.
Revision 2.1 by greg, Tue Nov 12 16:54:35 1991 UTC

# Line 19 | Line 19 | static char SCCSid[] = "$SunId$ LBL";
19   #include  "otypes.h"
20  
21   #ifndef  OSTSIZ
22 + #ifdef  BIGMEM
23 + #define  OSTSIZ         56437           /* object table size (a prime!) */
24 + #else
25   #define  OSTSIZ         12329           /* object table size (a prime!) */
26   #endif
27 + #endif
28  
29   static OBJECT  *ostable[OSTSIZ];        /* the object set table */
30  
# Line 189 | Line 193 | int  orig, nobjs;
193   {
194          int  n;
195          register OBJECT  *os;
196 <        register OBJECT  i;
196 >        register OBJECT  i, s;
197  
198          for (n = 0; n < OSTSIZ; n++) {
199                  if ((os = ostable[n]) == NULL)
200                          continue;
201                  while ((i = *os++) > 0)
202                          while (i--) {
203 <                                if (*os >= orig && *os < orig+nobjs &&
204 <                                                !issurface(objptr(*os)->otype))
203 >                                s = *os;
204 >                                if (s >= orig && s < orig+nobjs &&
205 >                                                !issurface(objptr(s)->otype))
206                                          return(1);
207                                  os++;
208                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines