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

Comparing ray/src/cv/mgflib/lookup.c (file contents):
Revision 1.2 by greg, Thu Jun 23 07:48:41 1994 UTC vs.
Revision 1.3 by greg, Thu Jun 23 08:48:28 1994 UTC

# Line 61 | Line 61 | char   *key;
61   {
62          int  hval, i;
63          register int  ndx;
64 <        LUENT  *oldtabl;
64 >        register LUENT  *oldtabl;
65                                          /* look up object */
66          hval = lu_hash(key);
67   tryagain:
# Line 83 | Line 83 | tryagain:
83          }
84          if (!ndx)
85                  goto tryagain;
86 +        /*
87 +         * The following code may fail if the user has reclaimed many
88 +         * deleted entries and the system runs out of memory in a
89 +         * recursive call to lu_find().
90 +         */
91          while (ndx--)
92                  if (oldtabl[ndx].key != NULL)
93                          if (oldtabl[ndx].data != NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines