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

Comparing ray/src/common/otypes.c (file contents):
Revision 1.2 by greg, Mon Apr 10 21:30:17 1989 UTC vs.
Revision 1.3 by greg, Fri Jan 5 09:16:40 1990 UTC

# Line 140 | Line 140 | register struct ohtab  *tab;
140          }
141                                          /* look up object */
142          hval = shash(name);
143 + tryagain:
144          for (i = 0; i < tab->hsiz; i++) {
145                  ndx = (hval + i*i) % tab->hsiz;
146                  if (tab->htab[ndx] == OVOID ||
# Line 156 | Line 157 | register struct ohtab  *tab;
157                          tab->htab[i] = oldhtab[ndx];
158                  }
159          free((char *)oldhtab);
160 <        return(otndx(name, tab));
160 >        goto tryagain;                  /* should happen only once! */
161   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines