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

Comparing ray/src/common/lookup.c (file contents):
Revision 2.3 by gregl, Wed Dec 3 10:59:30 1997 UTC vs.
Revision 2.4 by gwlarson, Tue Jun 2 15:01:43 1998 UTC

# Line 160 | Line 160 | char   *key;
160   }
161  
162  
163 + int
164 + lu_doall(tbl, f)                /* loop through all valid table entries */
165 + register LUTAB  *tbl;
166 + int     (*f)();
167 + {
168 +        int     rval = 0;
169 +        register LUENT  *tp;
170 +
171 +        for (tp = tbl->tabl + tbl->tsiz; tp-- > tbl->tabl; )
172 +                if (tp->data != NULL)
173 +                        if (f != NULL)
174 +                                rval += (*f)(tp);
175 +                        else
176 +                                rval++;
177 +        return(rval);
178 + }
179 +
180 +
181   void
182   lu_done(tbl)                    /* free table and contents */
183   register LUTAB  *tbl;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines